[PATCH] tests: fix test-git-import.out

Alexis S. L. Carvalho alexis at cecm.usp.br
Sun Jul 15 03:13:20 CDT 2007


Thus spake Giorgos Keramidas:
> # HG changeset patch
> # User Giorgos Keramidas <keramida at ceid.upatras.gr>
> # Date 1184469512 -10800
> # Node ID 8ed67de0453880e6a160877f58969e196087b4c1
> # Parent  da8640113b5a7e495d7e8adb4c0d90eea64d08c5
> tests: fix test-git-import.out
> 
> diff --git a/tests/test-git-import.out b/tests/test-git-import.out
> --- a/tests/test-git-import.out
> +++ b/tests/test-git-import.out
> @@ -62,4 +62,3 @@ a874b471193996e7cb034bb301cac7bdaf3e3f46
>  a874b471193996e7cb034bb301cac7bdaf3e3f46 644 mbinary2
>  % filenames with spaces
>  applying patch from stdin
> -foo

This looks like a problem with your patch(1) - or at least a difference
from the GNU version.  AFAICT, to correctly detect filenames with
spaces, GNU patch expects a line like "+++ file name<TAB>date".  The
date is optional, but the <TAB> is necessary.

With version 826659bd8053 we've started adding a trailing <TAB> to these
lines when there're spaces in the file name - that test is testing
whether patch applied the patch to the correct file ("foo" is the only
line in the resulting "foo bar" file).

Alexis


More information about the Mercurial-devel mailing list