[Python-checkins] devguide: Suggest using mpatch in the FAQ

Antoine Pitrou solipsis at pitrou.net
Sat Mar 12 00:20:58 CET 2011


On Fri, 11 Mar 2011 18:14:46 -0500
Eric Smith <eric at trueblade.com> wrote:

> On 03/11/2011 06:03 PM, antoine.pitrou wrote:
> >   If you want to try out or review a patch generated using Mercurial, do::
> >
> > -   hg import --no-commit somework.patch
> > +   patch -p1<  somework.patch
> >
> >   This will apply the changes in your working copy without committing them.
> >   If the patch was not created by Mercurial (for example, a patch created by
> >   Subversion and thus lacking any ``a``/``b`` directory prefixes in the patch),
> > -add ``-p0`` to the above command.
> > +replace ``-p0`` with ``-p1``.
> 
> Do you have this backwards? There is no -p0, it's already -p1.

Right, thank you.




More information about the Python-checkins mailing list