[PATCH] patch: improve handling of filenames containing spaces on import (issue3723)

Pierre-Yves David pierre-yves.david at logilab.fr
Fri Dec 7 04:28:28 CST 2012


On Thu, Dec 06, 2012 at 03:44:47PM -0600, Matt Mackall wrote:
> On Thu, 2012-12-06 at 21:00 +0000, Alastair Houghton wrote:
 For a baseline, if I try to import the git-diff generated by hg into an
> empty git repo with git-apply:
> 
> diff --git a/foo b/foo b/foo b/foo
> new file mode 100644
> --- /dev/null
> +++ b/foo b/foo	
> @@ -0,0 +1,1 @@
> +b
> 
> ..it almost works. By almost, I mean it creates 'foo\ b/foo' (literal
> backslash out of thin air) rather than 'foo b/foo'. LOLWUT. This also
> breaks in the same way with the known-to-agree-with-diff-and-patch
> standard diff that Mercurial produces.

I was unable to reproduce that here using:

git version 1.7.2.5
GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu) qs /bin/sh

What version are you using?

-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20121207/3e86151e/attachment.pgp>


More information about the Mercurial-devel mailing list