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

Re: [PATCH] Allow git-svnimport to take "" as the trunk directory.

From
LLLeandro Lucarella <llucax@gmail.com>
Date
Aug 14, 2007, 12:36 UTC
Message-ID
<20070814123604.GA10472@homero.springfield.home>
In-Reply-To
<85vebi3bzv.fsf@lola.goethe.zz>
David Kastrup, el 14 de agosto a las 07:45 me escribiste:
Show 11 quoted lines
> Alberto Bertogli <albertito@gmail.com> writes:
> 
> > Some repositories started with the trunk in "/" and then moved it to the
> > standard "trunk/" location.
> >
> > On these repositories, the correct thing would be to call
> > git-svnimport -T "",
> 
> I would not call that the best solution: it makes the bad decision
> from the past impact useful work in the future.  I very much like git
> having a good toplevel directory structure.

Besides the example of a mutating trunk directory, I have repositories where there is only trunk (in "/" directory) and it never changes. Without this patch, I can't even import that kind of repositories.

With repositories with a mutating trunk directory, I used the options -s and -l to incrementally import the repository. For example: $ git svnimport -l 100 -T '' <repo> and then $ git svnimport -s 101 -T 'trunk' <repo>

Show 5 quoted lines
> There are two approaches possible: one is to version the mapping
> trunk/tags/branches.  Another would be if one could tell git-svn where
> to stick stuff that does not sort into trunk/tags/branches.
> Incidentally, I've seen repositories that have something like a
> "support" or "vendor" directory, too.

The patch is for git-svnimport, not git-svn (but maybe git-svn has the same problem). Anyways, a way to map trunk/tags/branches to different directories in different versions would be great, but is a different problem than -T not supporting an empty string.

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
 .------------------------------------------------------------------------,
  \  GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05 /
   '--------------------------------------------------------------------'
Como un rinoceronte que lleva un pájaro en el lomo,
yo te alimento, no te veo ni te toco.
Previous: David KastrupNext: David Kastrup
Message 3 of 4 in “Allow git-svnimport to take "" as the trunk directory.”
  1. Allow git-svnimport to take "" as the trunk directory.Alberto Bertogli, Aug 14, 2007
  2. David KastrupAug 14, 2007
  3. Leandro LucarellaAug 14, 2007
  4. David KastrupAug 14, 2007

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.