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

Re: Problem with git-svn

From
Pascal Obry <pascal.obry@gmail.com>
Date
Dec 22, 2007, 14:38 UTC
Message-ID
<476D2170.70902@obry.net>
In-Reply-To
<20071222042924.GA18812@soma>
Eric,
Show 5 quoted lines
> Since r48468 was where /importfromcvs/trunk got renamed into /trunk/PROJ
> (from your previous message http://mid.gmane.org/4764FE2C.1010103@obry.net)
> 
> /importfromcvs/trunk exists at r45775, but /trunk/PROJ does not; and
> git-svn at least follows that (which is what I suppose everybody wants).
Right.
> However...
> 
> Did /importfromcvs/trunk exist all the way between r9458 and r48468?  Or
> was that directory replaced entirely by something else along the way?

It was replaced along the way. This very same tree /importfromcvs/trunk was used to import completely unrelated projects. Then moved, so it did not exist all the way.

In my case the previous version on this tree was 45546. There is nothing in between 45546 and 45775 for example. So looking at any revision in between return an error:

$ svn log -v svn+ssh://myserver/importfromcvs/trunk@45760 svn: File not found: revision 45760, path '/importfromcvs/trunk'

> git-svn may be following copy history too aggressively, in this case.
Looks like it is the case. Hence the reported errors:
W: Ignoring error from SVN, path probably does not exist: (160013):
Filesystem has no item: File not found: revision 100, path '/trunk/PROJ'
and
W: Ignoring error from SVN, path probably does not exist: (160013):
Filesystem has no item: File not found: revision 101, path
'/importfromcvs/trunk'
For sure there was no revision 101 on /importfromcvs/trunk:

$ svn log -v svn+ssh://myserver/importfromcvs/trunk@101 svn: File not found: revision 101, path '/importfromcvs/trunk'

Show 9 quoted lines
> On the other hand, this was somewhat intended because it could also
> be a way to track merges as "moving" tags[1].
> 
>>    $ git svn clone svn+ssh://myserver/trunk/PROJ --revision=45775:HEAD
>>
>> But it would be lot cleaner to have git-svn handling this properly I think.
> 
> Does --no-follow-parent work in your case?  Or does it go too far
> in stopping at r48468 (probably).

No it works on my case. That's what I'm using to import the directory in two steps. I just want to go to the bottom of this to see if we can somehow improve git-svn.

> Maybe another switch should be added (--merge-foster-parent?)

I'm not sure to understand what you are proposing here. To look only at parents that are directly "related" to the current branch ?

Thanks, Pascal.

-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Previous: Eric WongNext: Pascal Obry
Message 10 of 11 in “Problem with git-svn”
  1. Pascal ObryDec 16, 2007
  2. Peter BaumannDec 16, 2007
  3. Pascal ObryDec 16, 2007
  4. Eric WongDec 19, 2007
  5. Pascal ObryDec 19, 2007
  6. Eric WongDec 20, 2007
  7. Pascal ObryDec 20, 2007
  8. Pascal ObryDec 21, 2007
  9. Eric WongDec 22, 2007
  10. Pascal ObryDec 22, 2007
  11. Pascal ObryDec 20, 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.