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

Re: git-svn error: ambiguous argument

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Jun 28, 2010, 06:03 UTC
Message-ID
<AANLkTikKdDI_NMzvsA7e_VoYo7Ie97e2pBkZe_0xPt9P@mail.gmail.com>
In-Reply-To
<0D702391-E490-4942-AAB6-C8C887E671C5@inuus.com>
On Tue, May 11, 2010 at 21:44, Paul Lindner <lindner@inuus.com> wrote:
Show 24 quoted lines
> This fixed it for my situation.  Thanks!
>
> On May 11, 2010, at 9:20 AM, Bert Wesarg wrote:
>
>>
>> Can you try this patch, it worked on my site:
>>
>> diff --git a/git-svn.perl b/git-svn.perl
>> index b3b6964..40ecec0 100755
>> --- a/git-svn.perl
>> +++ b/git-svn.perl
>> @@ -3103,7 +3095,11 @@ sub check_cherry_pick {
>>       my %commits = map { $_ => 1 }
>>               _rev_list("--no-merges", $tip, "--not", $base);
>>       for my $range ( @ranges ) {
>> -             delete @commits{_rev_list($range)};
>> +             if ( $range =~ /^([[:xdigit:]]{40})\^\.\.([[:xdigit:]]{40})$/i ) {
>> +                     delete @commits{_rev_list(sprintf("%s^!", $1), $2)};
>> +             } else {
>> +                     delete @commits{_rev_list($range)};
>> +             }
>>       }
>>       for my $commit (keys %commits) {
>>               if (has_no_changes($commit)) {
Eric, have you picked this up, or should I re-send it as a propper patch?
Bert
Previous: Paul LindnerNext: Eric Wong
Message 6 of 8 in “git-svn error: ambiguous argument”
  1. Paul LindnerMay 3, 2010
  2. Bert WesargMay 11, 2010
  3. Bert WesargMay 11, 2010
  4. Bert WesargMay 11, 2010
  5. Paul LindnerMay 11, 2010
  6. Bert WesargJun 28, 2010
  7. Eric WongJun 28, 2010
  8. Bert WesargJul 6, 2010

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.