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

Re: Regression: git-svn clone failure

From
EWEric Wong <normalperson@yhbt.net>
Date
Dec 22, 2009, 19:21 UTC
Message-ID
<20091222192115.GA10313@dcvr.yhbt.net>
In-Reply-To
<8BD646EB-3F47-41F8-918C-19133CCCA89C@apple.com>
Andrew Myrick <amyrick@apple.com> wrote:
Show 15 quoted lines
> [Resending because I forgot to make the message plain text]
> 
> I was testing the latest changes to git-svn pushed to Eric's repo
> (git://git.bogomips.org/git-svn) by cloning a few other projects that
> I work on, and one of those clones failed where it had succeeded with
> git 1.6.5.  The error message I received is:
> 
> W:svn cherry-pick ignored (/branches/BranchA:3933-3950) - missing 1 commit(s) (eg 3fc50d3a7e0f555547ab34bb570db47ce71e1abb)
> W:svn cherry-pick ignored (/branches/BranchB:3951-3970) - missing 1 commit(s) (eg 3beb9f2fde0a91aa0e8097e05f9054b23b221daf)
> W:svn cherry-pick ignored (/branches/BranchC:3971-3985) - missing 1 commit(s) (eg a7ae202254604f8a78cca391be36c58efc79eb20)
> Found merge parent (svn:mergeinfo prop): 8b2cf9e9250b5ff1fe47c68215d0a178cfe35a3b
> Found merge parent (svn:mergeinfo prop): 59f8c571ae77885469bb31f007b0048ee7812e07
> fatal: ambiguous argument '0..1': unknown revision or path not in the working tree.
> Use '--' to separate paths from revisions
> rev-list -1 0..1: command returned error: 128
Hi Andrew,
That looks like a simple error, does the following patch help?
diff --git a/git-svn.perl b/git-svn.perl
index 3670960..dba0d12 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -3163,7 +3163,8 @@ sub find_extra_svn_parents {
 				next unless $new_parents[$i];
 				next unless $new_parents[$j];
 				my $revs = command_oneline(
-					"rev-list", "-1", "$i..$j",
+					"rev-list", "-1",
+					"$new_parents[$i]..$new_parents[$j]",
 				       );
 				if ( !$revs ) {
 					undef($new_parents[$i]);


Unfortunately I don't know my way around the rest of this code well
so I shall defer to Sam if it's something else...
-- 
Eric Wong
Previous: Andrew MyrickNext: Andrew Myrick
Message 2 of 10 in “Regression: git-svn clone failure”
  1. Andrew MyrickDec 22, 2009
  2. Eric WongDec 22, 2009
  3. Andrew MyrickDec 22, 2009
  4. Eric WongDec 22, 2009
  5. Sam VilainDec 22, 2009
  6. Junio C HamanoDec 22, 2009
  7. Sam VilainDec 23, 2009
  8. Andrew MyrickDec 22, 2009
  9. Sam VilainDec 23, 2009
  10. Sam VilainDec 22, 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.