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

Fwd: git svn with non-standard svn layout

From
CHChris Harris <chris.harris123@gmail.com>
Date
Sep 24, 2011, 18:37 UTC
Message-ID
<CANPpUWxnp3-ySO3oBEsWTQA=oWXEzKS1bddP9LjAsR1EyPxbVQ@mail.gmail.com>
In-Reply-To
<CANPpUWyX+n7kMKZpCV=Oy=UmJb=9H=uZseYzU2-h1FLh2nzg8w@mail.gmail.com>

I am using  git version 1.7.6.4 built from the latest stable source on github.   Running Ubuntu with kernel 2.6.38-11-generic

I can't seem to git git svn to see my branches correctly.
Unfortunately my svn repository is not open source, so I can not post
it here, but I will try to explain my issue.
We use a non standard svn layout like the following
branches
        V4.1
                V4.1.0
                V4.1.1
dev

dev is our trunk, and our branches have 2 levels. I first use git init, then setup my config as follows [svn-remote "svn"] url = file:///home/chris/svnrepo fetch = dev:refs/remotes/trunk branches = branches/V4.1/{V4.1.1}:refs/remotes/branches/* For this example I am just trying to make a single branch work. After a fetch all revisions are ok. master correctly points to remotes/trunk,but gitk shows the following:

o remotes/branches/V4.1.1
|
o some commit
|
|
|    o master - remotes/trunk
|    |
|    o another commit
|    /
|
etc
( sorry for the bad ascii art. )
My issue is that trunk ( master ) appears to be a  branch from V4.1.1
instead of  V4.1.1 being a branch from trunk ( master )
git log --graph shows the same structure.
Any suggestions on how to configure this so git svn maps my
non-standard layout correctly?
Thank you
Chris
Next: Phil Hord
Message 1 of 2 in “Fwd: git svn with non-standard svn layout”
  1. Chris HarrisSep 24, 2011
  2. Phil HordSep 25, 2011

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.