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

Re: git-svn problem with v1.6.5

From
EWEric Wong <normalperson@yhbt.net>
Date
Nov 11, 2009, 20:22 UTC
Message-ID
<20091111202201.GA10351@dcvr.yhbt.net>
In-Reply-To
<4AFB1756.7090708@obry.net>
Pascal Obry <pascal@obry.net> wrote:
Show 7 quoted lines
> Avery,
>
>> Well, that's bad news.  Does "git log --all --parents | grep
>> d2cf08bb67e4b7da33a250127aab784f1f2f58d3" reveal any places that refer
>> to it?
>
> No.
Weird...
Show 6 quoted lines
>> It sounds a bit like your git-svn thinks something maps on to that
>> commit id, but a previous 'git gc' or something has thrown it away.
>> However, that doesn't explain why earlier git versions don't have this
>> problem.
>
> Maybe, but that would be a quite annoying bug!
Show 7 quoted lines
>> If you retrieve the latest version of git and then git revert the
>> above commit, does that fix the problem, at least?
>
> I cannot, this does not revert cleanly and I don't know how to properly  
> resolve this conflict. I'm no Perl expert!
>
> But reverting using the version just before fixes this problem.
That should rule out filesystem corruption...
Show 14 quoted lines
>> Is it possible you have some weird branches outside of the
>> refs/remotes tree (either in .git itself, or in .git/refs/*) that you
>> forgot about, and which the new version of git-svn is finding somehow?
>
> I do not see something under .git/refs/* (only empty directories).
>
> The project has been imported using something like this:
>
>  $ git svn clone --prefix=svn/ svn+ssh://server/path \
> 	--revision=580:HEAD \
> 	--trunk=trunk/project \
> 	--tags=tags/project \
> 	--branches=branches/project \
> 	--branches="branches/global/*/project" project

It looks like you didn't use any of the weird[1] options that make it unsafe to clobber the rev_maps. Can you try removing all the .rev_map.* files in $GIT_DIR/svn and running "git svn fetch" to rebuild them?

[1] --no-metadata, --use-svm-props
-- 
Eric Wong
Previous: Pascal ObryNext: Eric Wong
Message 6 of 17 in “git-svn problem with v1.6.5”
  1. Pascal ObryNov 10, 2009
  2. Avery PennarunNov 10, 2009
  3. Pascal ObryNov 11, 2009
  4. Avery PennarunNov 11, 2009
  5. Pascal ObryNov 11, 2009
  6. Eric WongNov 11, 2009
  7. Eric WongNov 11, 2009
  8. Pascal ObryNov 11, 2009
  9. Eric WongNov 11, 2009
  10. Pascal ObryNov 12, 2009
  11. Eric WongNov 12, 2009
  12. Pascal ObryNov 12, 2009
  13. Pascal ObryNov 12, 2009
  14. Eric WongNov 12, 2009
  15. Pascal ObryNov 12, 2009
  16. Sam VilainNov 11, 2009
  17. Pascal ObryNov 11, 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.