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

Re: [PATCH/rfc] git-svn.perl: workaround assertions in svn library 1.5.0

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 20, 2008, 01:27 UTC
Message-ID
<7vbq0tibuf.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<37fcd2780807171137m1c5a8197vc94b2a42ac53a297@mail.gmail.com>
"Dmitry Potapov" <dpotapov@gmail.com> writes:
Show 33 quoted lines
> On Thu, Jul 17, 2008 at 6:08 PM, Gerrit Pape <pape@smarden.org> wrote:
>>
>> Hi, while this commit fixed the selftests, it unfortunately is a
>> regression
>>
>>  http://thread.gmane.org/gmane.comp.version-control.git/87822/
>>  http://bugs.debian.org/490400
>
> This particular breakage is easy to fix:
>
> diff --git a/git-svn.perl b/git-svn.perl
> index 3750e47..a5a5b1b 100755
> --- a/git-svn.perl
> +++ b/git-svn.perl
> @@ -1226,7 +1226,7 @@ sub linearize_history {
>
>  sub find_file_type_and_diff_status {
>         my ($path) = @_;
> -       return ('dir', '') if $path eq '.';
> +       return ('dir', '') if $path eq '';
>
>         my $diff_output =
>             command_oneline(qw(diff --cached --name-status --), $path) || "";
>
> but it could be some other places in git-svn that may need correction too.
>
>>
>> I'm still not sure whether this is a git-svn problem, or actually a
>> problem in subversion 1.5.0
>
> Accordingly to SVN developers you do not use SVN API correctly,
> therefore you got assert. So, the problem in git-svn.
> http://svn.haxx.se/dev/archive-2008-01/0425.shtml
So what's the conclusion of this issue?

I'll just revert 2fe403e (git-svn.perl: workaround assertions in svn library 1.5.0, 2008-07-06) for 1.6.0-rc0 unless I hear better suggestions.

Previous: Dmitry PotapovNext: Dmitry Potapov
Message 5 of 8 in “git-svn.perl: workaround assertions in svn library 1.5.0”
  1. git-svn.perl: workaround assertions in svn library 1.5.0Gerrit Pape, Jul 6, 2008
  2. Eric WongJul 7, 2008
  3. Gerrit PapeJul 17, 2008
  4. Dmitry PotapovJul 17, 2008
  5. Junio C HamanoJul 20, 2008
  6. Dmitry PotapovJul 20, 2008
  7. Eric WongJul 21, 2008
  8. Junio C HamanoJul 21, 2008

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.