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

Re: git-svn-Cloning repository with complicate nesting

From
Marc Branchaud <marcnarc@xiplink.com>
Date
Sep 3, 2009, 16:50 UTC
Message-ID
<4A9FF3D0.9040606@xiplink.com>
In-Reply-To
<9accb4400909030917y2e8d4c97tef1320c05d4c4e1c@mail.gmail.com>
Daniele Segato wrote:
> 
> hum...
> It could be an idea but I don't know how hard could it be to check it:
> how much deep inside the tree should Git search for branch?
Well, as far as it takes.  Actually, the search should be fairly well constrained.  After checking that the entries under a particular path aren't a copy of the trunk, each entry can only represent either a branch that git-svn already knows about, or a new branch.
> what if there are branches that are completely differents?
Not sure what you mean there.  Can you come up with an example of this?
Show 18 quoted lines
> may be the user could create and pass a "branch model" to git svn to
> make it able to decide what is a branch and what isn't.
> 
> I think there are many options
> 
> In my case It would have worked defining a structure like:
> BRANCHES/*/root -> remote/svn/branch/*
> BRANCHES/*/*/root -> remote/svn/branch/*/*
> 
> But it would be better with something like:
> BRANCHES/\([^\/]+\)/root -> remote/svn/branch/$1
> BRANCHES/\([^\/]+\)/\([^\/]+\)/root -> remote/svn/branch/$1/$2
> 
> like a grouped regex.
> 
> every branch not matching the regex will be skipped..
> only an idea.. It couln't work in every situation but it would allow a
> greater degree of freedom in the configuration.
Turning the branch refspecs into true regular expressions sounds like a good idea to me, and would probably be easier to implement than the trunk-detection stuff I proposed.  Though there'd have to be a way to stay compatible with or upgrade the current non-regex refspecs.
> I don't know if Git developers are interested in thinking on some
> features like this.. it sound like an SVN-only hack to me.
All of git-svn is already a hack for dealing with SVN.  :)  I'm sure a patch for this would be welcome.
		M.
Previous: Daniele Segato
Message 4 of 4 in “git-svn-Cloning repository with complicate nesting”
  1. Daniele SegatoAug 27, 2009
  2. Marc BranchaudSep 3, 2009
  3. Daniele SegatoSep 3, 2009
  4. Marc BranchaudSep 3, 2009

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.