{"thread":{"id":"20796","subject":"Re: git-svn-Cloning repository with complex nesting","startedAt":"2009-08-31T07:41:28Z","lastAt":"2009-08-31T07:41:28Z","messageCount":1,"participants":["Daniele Segato"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"122170","messageId":"9accb4400908310041j45d2d1bar9e61348e355892b9@mail.gmail.com","threadId":"20796","inReplyTo":null,"subject":"Re: git-svn-Cloning repository with complex nesting","fromName":"Daniele Segato","fromEmail":"daniele.bilug@gmail.com","sentAt":"2009-08-31T07:41:28Z","receivedAt":"2009-08-31T07:41:28Z","isPatch":false,"sender":{"key":"daniele.bilug@gmail.com","avatar":null},"body":"On Thu, Aug 27, 2009 at 10:32 AM, Daniele Segato<daniele.bilug@gmail.com> wrote:\n> Hi, this is my first message in the list: this may be a newbie\n> question and my English may not be very good.\n\nto prove my sentence:\nthe subject should have been \"git-svn-Cloning repository with\n_complex_ nesting\" :-)\n\nI received help on IRC (#git) and managed to setup the svn-remote in\nan acceptable way\n\n> I've an SVN repository structured like this:\n>\n> http://<url>/path/to/repo\n>    |\n>  HEAD\n>    |----- root\n>    |\n>  BRANCHES\n>    |----- V1.0\n>    |         |----- root\n>    |\n>    |----- V1.1\n>    |         |----- root\n>    |\n>    |----- V1.2\n>    |         |----- root\n>    |\n>    |----- DEV\n>    |         |----- FEATURE1\n>    |         |            |----- root\n>    |         |\n>    |         |----- FEATURE2\n>    |         |            |----- root\n>    |         |\n>    |         |----- FEATURE3\n>    |                      |----- root\n>    |\n>    |----- BUILDS\n>              |----- BUILD1\n>              |            |----- root\n>              |\n>              |----- BUILD2\n>              |            |----- root\n>              |\n>              |----- BUILD3\n>                           |----- root\n\n\nthis is my setting:\n\ngit init\ngit svn init svn://svn.mydomain.com/path/to/repo -T HEAD -b BRANCHES -t TAGS\n\nvim .git/config # edited the svn-remote config as follow:\n[svn-remote \"svn\"]\n\turl = svn://svn.mydomain.com\n\tfetch = path/to/repo/HEAD/root:refs/remotes/svn/trunk\n\tbranches = path/to/repo/BRANCHES/*/root:refs/remotes/svn/*\n\ttags = path/to/repo/TAGS/*/root:refs/remotes/svn/tags/*\n\ngit svn fetch\n\nit seems to work as expected: only those branches that has a \"root\"\nfolder got downloaded and fetched.\n\nI still couldn't retrieve the DEV/FEATUREx branches in that way.\nOn IRC they told me I can add another line for branches:\n\nbranches = path/to/repo/BRANCHES/*/*/root:refs/remotes/svnbis/*\n\nbut I haven't been successful on this. They told me that I can add\nmultiple branches lines only on newer versions of git.\nProbably that's the reason for that.\nI have git version 1.5.6.5.\n\nIt is not a big deal: I can live without those branches even if I'll\nlike to have them too.\n\nI have another problem now on that SVN repo but I'll open another\ntopic about that because it is not related.\n\nRegards,\nDaniele\n"}]}