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

Re: how does git svn work

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Jun 30, 2008, 20:57 UTC
Message-ID
<02EDA057-6DE9-4038-ACDA-8763BE0A0D0C@silverinsanity.com>
In-Reply-To
<200806302157.32828.thomas@koch.ro>
On Jun 30, 2008, at 3:57 PM, Thomas Koch wrote:
Show 24 quoted lines
> In particular I want to follow the repository at:
> http://pubsvn.ez.no/nextgen/
>
> The layout is like
> /trunk
> /stable
>  |- 4.0
>  |- 3.9
>  |- 3.8
>  ...
> /releases
>  |- 4.0
>  |- 4.0r1
>  |- 3.9
>  |- 3.9r1
>  |- 3.9r2
>
>
> I do not know, whether git-svn can create branches automatically for
> each directory under /stable and one main branch for trunk or  
> whether I
> need to create one svn-remote definition for every svn directory I  
> want
> to track.

I'm not sure what commands git-svn uses, but it looks like the following command should work:

git svn clone --trunk=trunk --tags=releases --branches=stable http://pubsvn.ez.no/nextgen/ 
  nextgen

That should create a nextgen git repository with a master branch following SVN stable, and automatically grabbing anything under stable or releases as a new branch. (I actually marked releases as a tag but I think git-svn treats them as branches, since they can change on the SVN side.)

~~ Brian
Previous: Thomas Koch
Message 2 of 2 in “how does git svn work”
  1. Thomas KochJun 30, 2008
  2. Brian GernhardtJun 30, 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.