git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn: multiple branches directories
@ 2008-06-08  0:23 Tzafrir Cohen
  2008-06-08 16:00 ` Steven Walter
  0 siblings, 1 reply; 4+ messages in thread
From: Tzafrir Cohen @ 2008-06-08  0:23 UTC (permalink / raw)
  To: git

Hi

Does git-svn support a repository layout where branches may reside under
more than one root?

/trunk
/branches
  branch1
  branch2
  branch3
/somedir
  branch4
  branch5
  branch6
/tags
  ...

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen@xorcom.com
+972-50-7952406           mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-svn: multiple branches directories
  2008-06-08  0:23 git-svn: multiple branches directories Tzafrir Cohen
@ 2008-06-08 16:00 ` Steven Walter
  2008-06-08 18:37   ` Tzafrir Cohen
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Walter @ 2008-06-08 16:00 UTC (permalink / raw)
  To: git

On Sat, Jun 7, 2008 at 8:23 PM, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:
> Hi
>
> Does git-svn support a repository layout where branches may reside under
> more than one root?
>
> /trunk
> /branches
>  branch1
>  branch2
>  branch3
> /somedir
>  branch4
>  branch5
>  branch6
> /tags
>  ...

git-svn does support it.  The way that I interact with repositories
like this is to have the main git-svn remote track only the trunk
(fetch = /trunk:...), and then to add addititonal remotes for each
branch that I want to track.  There may be a nicer way to do it, but
git-svn certainly supports the method just described.
-- 
-Steven Walter <stevenrwalter@gmail.com>
"A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects."
 -Robert Heinlein

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-svn: multiple branches directories
  2008-06-08 16:00 ` Steven Walter
@ 2008-06-08 18:37   ` Tzafrir Cohen
  2008-06-08 18:51     ` Björn Steinbrink
  0 siblings, 1 reply; 4+ messages in thread
From: Tzafrir Cohen @ 2008-06-08 18:37 UTC (permalink / raw)
  To: git

On Sun, Jun 08, 2008 at 12:00:58PM -0400, Steven Walter wrote:
> On Sat, Jun 7, 2008 at 8:23 PM, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:
> > Hi
> >
> > Does git-svn support a repository layout where branches may reside under
> > more than one root?
> >
> > /trunk
> > /branches
> >  branch1
> >  branch2
> >  branch3
> > /somedir
> >  branch4
> >  branch5
> >  branch6
> > /tags
> >  ...
> 
> git-svn does support it.  The way that I interact with repositories
> like this is to have the main git-svn remote track only the trunk
> (fetch = /trunk:...), and then to add addititonal remotes for each
> branch that I want to track.  There may be a nicer way to do it, but
> git-svn certainly supports the method just described.

Thanks for your answer,

I'm afraid I don't follow you. Where do I have to write that and where?

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen@xorcom.com
+972-50-7952406           mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-svn: multiple branches directories
  2008-06-08 18:37   ` Tzafrir Cohen
@ 2008-06-08 18:51     ` Björn Steinbrink
  0 siblings, 0 replies; 4+ messages in thread
From: Björn Steinbrink @ 2008-06-08 18:51 UTC (permalink / raw)
  To: git

On 2008.06.08 21:37:42 +0300, Tzafrir Cohen wrote:
> On Sun, Jun 08, 2008 at 12:00:58PM -0400, Steven Walter wrote:
> > On Sat, Jun 7, 2008 at 8:23 PM, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:
> > > Hi
> > >
> > > Does git-svn support a repository layout where branches may reside under
> > > more than one root?
> > >
> > > /trunk
> > > /branches
> > >  branch1
> > >  branch2
> > >  branch3
> > > /somedir
> > >  branch4
> > >  branch5
> > >  branch6
> > > /tags
> > >  ...
> > 
> > git-svn does support it.  The way that I interact with repositories
> > like this is to have the main git-svn remote track only the trunk
> > (fetch = /trunk:...), and then to add addititonal remotes for each
> > branch that I want to track.  There may be a nicer way to do it, but
> > git-svn certainly supports the method just described.
> 
> Thanks for your answer,
> 
> I'm afraid I don't follow you. Where do I have to write that and where?

You can just add more svn-remote to a single git repo with "git svn
init". So you could do:

git svn clone -s svn://host/some/repo
cd repo
git svn init --branches somedir svn://host/some/repo/ svn2
git svn fetch svn2

To fetch all new stuff at once, you would then later use "git svn fetch
--all".

Björn

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-08 18:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-08  0:23 git-svn: multiple branches directories Tzafrir Cohen
2008-06-08 16:00 ` Steven Walter
2008-06-08 18:37   ` Tzafrir Cohen
2008-06-08 18:51     ` Björn Steinbrink

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).