changeset 14584:3343a74eea4e

mq: rename check_reserved_name to checkreservedname
author Adrian Buehlmann <adrian@cadifra.com>
date Mon, 13 Jun 2011 12:07:46 +0200
parents 28f87e14d923
children 74bf9c84cfd0
files hgext/mq.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Mon Jun 13 12:06:32 2011 +0200
+++ b/hgext/mq.py	Mon Jun 13 12:07:46 2011 +0200
@@ -859,7 +859,7 @@
         return m, a, r, d
 
     _reserved = ('series', 'status', 'guards', '.', '..')
-    def check_reserved_name(self, name):
+    def checkreservedname(self, name):
         if name in self._reserved:
             raise util.Abort(_('"%s" cannot be used as the name of a patch')
                              % name)
@@ -873,7 +873,7 @@
                                  % c)
 
     def checkpatchname(self, name, force=False):
-        self.check_reserved_name(name)
+        self.checkreservedname(name)
         if not force and os.path.exists(self.join(name)):
             if os.path.isdir(self.join(name)):
                 raise util.Abort(_('"%s" already exists as a directory')
@@ -1809,7 +1809,7 @@
                 if filename == '-':
                     raise util.Abort(_('-e is incompatible with import from -'))
                 filename = normname(filename)
-                self.check_reserved_name(filename)
+                self.checkreservedname(filename)
                 originpath = self.join(filename)
                 if not os.path.isfile(originpath):
                     raise util.Abort(_("patch %s does not exist") % filename)