[Python-Dev] [Python-checkins] devguide: Suggest using mpatch in the FAQ
Eric Smith
eric at trueblade.com
Sat Mar 12 00:14:46 CET 2011
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.
Eric.
More information about the Python-Dev
mailing list