apply patches in reverse
Patrick Mézard
pmezard at gmail.com
Wed Sep 12 02:28:09 CDT 2007
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
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.
--
Patrick Mézard
More information about the Mercurial-devel
mailing list