[Python-checkins] devguide: Mention that -p1 is sometimes needed for 'patch'.

brett.cannon python-checkins at python.org
Sat Jan 29 01:00:35 CET 2011


brett.cannon pushed 4c4413b841d6 to devguide:

http://hg.python.org/devguide/rev/4c4413b841d6
changeset:   215:4c4413b841d6
user:        Brett Cannon <brett at python.org>
date:        Fri Jan 28 15:34:05 2011 -0800
summary:
  Mention that -p1 is sometimes needed for 'patch'.

files:
  patch.rst

diff --git a/patch.rst b/patch.rst
--- a/patch.rst
+++ b/patch.rst
@@ -79,6 +79,10 @@
 
     patch -p0 < patch.diff
 
+If a developer is using something other than svn to manage their code (e.g.,
+the mq extension for Mercurial), the number passed to ``-p`` may need to be
+changed to ``1``.
+
 To undo a patch, you can revert **all** changes made in your checkout::
 
     svn revert -R .

--
Repository URL: http://hg.python.org/devguide


More information about the Python-checkins mailing list