[PATCH] mdiff: Add TAB after file names in header to make gnu patch handle filenames with spaces

Alexis S. L. Carvalho alexis at cecm.usp.br
Tue Mar 20 20:39:50 CDT 2007


Thus spake Andrei Vermel:
> This patch allows mq and transplant to work with paths and filenames
> containing spaces. Tab after filenames allows gnu patch to read them
> properly.

Hmm...  I see the problem, but I don't think this is the right solution:

- regular diff already adds a tab before the date
- a --git diff shouldn't have this trailing tab
- a --nodates diff could have the trailing tab (even though it'd be a
  bit weird)

For --git patches we probably could mangle things a bit before sending
them to patch, but that part of the code is sort of waiting for the
merge of mpatch (cmason's patch implementation in python)...

Alexis


More information about the Mercurial-devel mailing list