[PATCH] mq: recognize the context format diff header when importing

Patrick Mézard pmezard at gmail.com
Mon Feb 15 13:19:09 CST 2010


Le 15/02/10 08:10, Jozef Hatala a écrit :
> Hello there.
> 
> mq.py's patchheader looks for the beginning of the actual patch and if
> the patch is in the "context diff" format as opposed to the "unified
> diff" format, patchheader does not find it and concludes that the patch
> is empty when you qpush it.
> 
> The patch below makes patchheader recognize the '***'/'---' sequence in
> addition to the usual '---'/'+++' sequence.
> 
> What do you think?

That is sad to deal with context diffs in 2010 :-)

That said, why not but this will have to wait for the next release and the end of the code freeze (beginning of march). If it looks this patch has been lost, do not hesitate to ping again for review.

--
Patrick Mézard


More information about the Mercurial-devel mailing list