[Python-Dev] devguide: Cover how to (un-)apply a patch.
Georg Brandl
g.brandl at gmx.net
Tue Jan 18 08:12:36 CET 2011
Am 18.01.2011 01:19, schrieb skip at pobox.com:
>
> Antoine> On Mon, 17 Jan 2011 23:37:07 +0100
> Antoine> brett.cannon <python-checkins at python.org> wrote:
> >> +
> >> +To undo a patch, do::
> >> +
> >> + patch -R -p0 < patch.diff
> >> +
>
> Antoine> Or, simply and more reliably, use the corresponding VCS
> Antoine> incantation ("svn revert -R ." or "hg revert -a").
>
> I prefer Brett's solution. It's one command instead of one command per VCS.
> It works with other version control systems and provides me the opportunity
> to save a copy I can restore later.
It assumes you already have the copy.
Georg
More information about the Python-Dev
mailing list