mq: rename partial_name to partialname
authorAdrian Buehlmann <adrian@cadifra.com>
Mon, 13 Jun 2011 13:48:47 +0200
changeset 14595 f2c9d4091e0e
parent 14594 3752b5e1f4c4
child 14596 6a0070d00bc8
mq: rename partial_name to partialname
hgext/mq.py
--- a/hgext/mq.py	Mon Jun 13 13:47:21 2011 +0200
+++ b/hgext/mq.py	Mon Jun 13 13:48:47 2011 +0200
@@ -1016,7 +1016,7 @@
     def lookup(self, patch, strict=False):
         patch = patch and str(patch)
 
-        def partial_name(s):
+        def partialname(s):
             if s in self.series:
                 return s
             matches = [x for x in self.series if s in x]
@@ -1049,12 +1049,12 @@
                     return self.series[sno]
 
             if not strict:
-                res = partial_name(patch)
+                res = partialname(patch)
                 if res:
                     return res
                 minus = patch.rfind('-')
                 if minus >= 0:
-                    res = partial_name(patch[:minus])
+                    res = partialname(patch[:minus])
                     if res:
                         i = self.series.index(res)
                         try:
@@ -1066,7 +1066,7 @@
                                 return self.series[i - off]
                 plus = patch.rfind('+')
                 if plus >= 0:
-                    res = partial_name(patch[:plus])
+                    res = partialname(patch[:plus])
                     if res:
                         i = self.series.index(res)
                         try: