{"thread":{"id":"13857","subject":"git-svn: multiple branches directories","startedAt":"2008-06-08T00:23:50Z","lastAt":"2008-06-08T18:51:40Z","messageCount":4,"participants":["Tzafrir Cohen","Steven Walter","Björn Steinbrink"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"79076","messageId":"20080608002349.GB23243@xorcom.com","threadId":"13857","inReplyTo":null,"subject":"git-svn: multiple branches directories","fromName":"Tzafrir Cohen","fromEmail":"tzafrir.cohen@xorcom.com","sentAt":"2008-06-08T00:23:50Z","receivedAt":"2008-06-08T00:23:50Z","isPatch":false,"sender":{"key":"tzafrir.cohen@xorcom.com","avatar":null},"body":"Hi\n\nDoes git-svn support a repository layout where branches may reside under\nmore than one root?\n\n/trunk\n/branches\n  branch1\n  branch2\n  branch3\n/somedir\n  branch4\n  branch5\n  branch6\n/tags\n  ...\n\n-- \n               Tzafrir Cohen\nicq#16849755              jabber:tzafrir.cohen@xorcom.com\n+972-50-7952406           mailto:tzafrir.cohen@xorcom.com\nhttp://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir\n"},{"id":"79126","messageId":"e06498070806080900x4ecd730byefedf88aa4feee5e@mail.gmail.com","threadId":"13857","inReplyTo":"20080608002349.GB23243@xorcom.com","subject":"Re: git-svn: multiple branches directories","fromName":"Steven Walter","fromEmail":"stevenrwalter@gmail.com","sentAt":"2008-06-08T16:00:58Z","receivedAt":"2008-06-08T16:00:58Z","isPatch":false,"sender":{"key":"stevenrwalter@gmail.com","avatar":"https://avatars.githubusercontent.com/u/79127?v=4"},"body":"On Sat, Jun 7, 2008 at 8:23 PM, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:\n> Hi\n>\n> Does git-svn support a repository layout where branches may reside under\n> more than one root?\n>\n> /trunk\n> /branches\n>  branch1\n>  branch2\n>  branch3\n> /somedir\n>  branch4\n>  branch5\n>  branch6\n> /tags\n>  ...\n\ngit-svn does support it.  The way that I interact with repositories\nlike this is to have the main git-svn remote track only the trunk\n(fetch = /trunk:...), and then to add addititonal remotes for each\nbranch that I want to track.  There may be a nicer way to do it, but\ngit-svn certainly supports the method just described.\n-- \n-Steven Walter <stevenrwalter@gmail.com>\n\"A human being should be able to change a diaper, plan an invasion,\nbutcher a hog, conn a ship, design a building, write a sonnet, balance\naccounts, build a wall, set a bone, comfort the dying, take orders,\ngive orders, cooperate, act alone, solve equations, analyze a new\nproblem, pitch manure, program a computer, cook a tasty meal, fight\nefficiently, die gallantly. Specialization is for insects.\"\n -Robert Heinlein\n"},{"id":"79147","messageId":"20080608183742.GF23243@xorcom.com","threadId":"13857","inReplyTo":"e06498070806080900x4ecd730byefedf88aa4feee5e@mail.gmail.com","subject":"Re: git-svn: multiple branches directories","fromName":"Tzafrir Cohen","fromEmail":"tzafrir.cohen@xorcom.com","sentAt":"2008-06-08T18:37:42Z","receivedAt":"2008-06-08T18:37:42Z","isPatch":false,"sender":{"key":"tzafrir.cohen@xorcom.com","avatar":null},"body":"On Sun, Jun 08, 2008 at 12:00:58PM -0400, Steven Walter wrote:\n> On Sat, Jun 7, 2008 at 8:23 PM, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:\n> > Hi\n> >\n> > Does git-svn support a repository layout where branches may reside under\n> > more than one root?\n> >\n> > /trunk\n> > /branches\n> >  branch1\n> >  branch2\n> >  branch3\n> > /somedir\n> >  branch4\n> >  branch5\n> >  branch6\n> > /tags\n> >  ...\n> \n> git-svn does support it.  The way that I interact with repositories\n> like this is to have the main git-svn remote track only the trunk\n> (fetch = /trunk:...), and then to add addititonal remotes for each\n> branch that I want to track.  There may be a nicer way to do it, but\n> git-svn certainly supports the method just described.\n\nThanks for your answer,\n\nI'm afraid I don't follow you. Where do I have to write that and where?\n\n-- \n               Tzafrir Cohen\nicq#16849755              jabber:tzafrir.cohen@xorcom.com\n+972-50-7952406           mailto:tzafrir.cohen@xorcom.com\nhttp://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir\n"},{"id":"79148","messageId":"20080608185140.GA31698@atjola.homenet","threadId":"13857","inReplyTo":"20080608183742.GF23243@xorcom.com","subject":"Re: git-svn: multiple branches directories","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2008-06-08T18:51:40Z","receivedAt":"2008-06-08T18:51:40Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2008.06.08 21:37:42 +0300, Tzafrir Cohen wrote:\n> On Sun, Jun 08, 2008 at 12:00:58PM -0400, Steven Walter wrote:\n> > On Sat, Jun 7, 2008 at 8:23 PM, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:\n> > > Hi\n> > >\n> > > Does git-svn support a repository layout where branches may reside under\n> > > more than one root?\n> > >\n> > > /trunk\n> > > /branches\n> > >  branch1\n> > >  branch2\n> > >  branch3\n> > > /somedir\n> > >  branch4\n> > >  branch5\n> > >  branch6\n> > > /tags\n> > >  ...\n> > \n> > git-svn does support it.  The way that I interact with repositories\n> > like this is to have the main git-svn remote track only the trunk\n> > (fetch = /trunk:...), and then to add addititonal remotes for each\n> > branch that I want to track.  There may be a nicer way to do it, but\n> > git-svn certainly supports the method just described.\n> \n> Thanks for your answer,\n> \n> I'm afraid I don't follow you. Where do I have to write that and where?\n\nYou can just add more svn-remote to a single git repo with \"git svn\ninit\". So you could do:\n\ngit svn clone -s svn://host/some/repo\ncd repo\ngit svn init --branches somedir svn://host/some/repo/ svn2\ngit svn fetch svn2\n\nTo fetch all new stuff at once, you would then later use \"git svn fetch\n--all\".\n\nBjörn\n"}]}