git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-svn: multiple branches directories

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Jun 8, 2008, 18:51 UTC
Message-ID
<20080608185140.GA31698@atjola.homenet>
In-Reply-To
<20080608183742.GF23243@xorcom.com>
On 2008.06.08 21:37:42 +0300, Tzafrir Cohen wrote:
Show 28 quoted lines
> 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
Previous: Tzafrir Cohen
Message 4 of 4 in “git-svn: multiple branches directories”
  1. Tzafrir CohenJun 8, 2008
  2. Steven WalterJun 8, 2008
  3. Tzafrir CohenJun 8, 2008
  4. Björn SteinbrinkJun 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.