mercurial/patch.py
changeset 13751 85d74f6babf6
parent 13701 bc38ff7cb919
child 13878 a8d13ee0ce68
--- a/mercurial/patch.py	Wed Mar 23 19:28:16 2011 -0500
+++ b/mercurial/patch.py	Thu Mar 24 10:28:29 2011 +0100
@@ -1156,7 +1156,7 @@
         return -1
     return err
 
-def externalpatch(patcher, patchname, ui, strip, cwd, files):
+def _externalpatch(patcher, patchname, ui, strip, cwd, files):
     """use <patcher> to apply <patchname> to the working directory.
     returns whether patch was applied with fuzz factor."""
 
@@ -1240,7 +1240,7 @@
         files = {}
     try:
         if patcher:
-            return externalpatch(patcher, patchname, ui, strip, cwd, files)
+            return _externalpatch(patcher, patchname, ui, strip, cwd, files)
         return internalpatch(patchname, ui, strip, cwd, files, eolmode)
     except PatchError, err:
         raise util.Abort(str(err))