apply patches in reverse

TK Soh teekaysoh at gmail.com
Wed Sep 12 04:00:37 CDT 2007


On 9/12/07, Patrick Mézard <pmezard at gmail.com> wrote:
> TK Soh a écrit :
> > Working on an extension, I need to apply patch in reverse (-R). Can I
> > get patch.internalpatch() to do that? If not, is there anyway to do so
> > without modifying the hg's core?
>
> mpatch can do that, and patch.applydiff() (in crew) still has the
> 'reverse' option, but it cannot be set via patch.patch(). I do not know

by 'still', do you mean it may be removed soon?

> to which extent the --reverse option is compatible with patch utilities
> out there. If it is, I guess patch.patch() can just accept an optional
> 'reverse' argument.

Any plan to add the 'reverse' argument soon?



More information about the Mercurial-devel mailing list