A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-January/107454.html below:

[Python-Dev] devguide: Cover how to (un-)apply a patch.

[Python-Dev] devguide: Cover how to (un-)apply a patch. [Python-Dev] devguide: Cover how to (un-)apply a patch.Oleg Broytman phd at phdru.name
Tue Jan 18 10:31:51 CET 2011
On Mon, Jan 17, 2011 at 06:19:50PM -0600, skip at pobox.com wrote:
>     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.

   "hg revert" saves files before reverting as *.orig.

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4