mq: rename set_guards to setguards
authorAdrian Buehlmann <adrian@cadifra.com>
Mon, 13 Jun 2011 11:58:16 +0200
changeset 14577 76357276662e
parent 14576 668ea374f46e
child 14578 28a2646f3b81
mq: rename set_guards to setguards
hgext/mq.py
--- a/hgext/mq.py	Mon Jun 13 11:57:21 2011 +0200
+++ b/hgext/mq.py	Mon Jun 13 11:58:16 2011 +0200
@@ -432,7 +432,7 @@
                     self.active_guards.append(guard)
         return self.active_guards
 
-    def set_guards(self, idx, guards):
+    def setguards(self, idx, guards):
         for g in guards:
             if len(g) < 2:
                 raise util.Abort(_('guard %r too short') % g)
@@ -2454,7 +2454,7 @@
         idx = q.findseries(patch)
         if idx is None:
             raise util.Abort(_('no patch named %s') % patch)
-        q.set_guards(idx, args)
+        q.setguards(idx, args)
         q.save_dirty()
     else:
         status(q.series.index(q.lookup(patch)))