changeset 14590:dbb80f03d4ae

mq: rename active_guards to activeguards
author Adrian Buehlmann <adrian@cadifra.com>
date Mon, 13 Jun 2011 13:41:58 +0200
parents 7d59ee9e711b
children b49099712d30
files hgext/mq.py
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Mon Jun 13 13:40:35 2011 +0200
+++ b/hgext/mq.py	Mon Jun 13 13:41:58 2011 +0200
@@ -273,7 +273,7 @@
         self.seriespath = "series"
         self.statuspath = "status"
         self.guardspath = "guards"
-        self.active_guards = None
+        self.activeguards = None
         self.guards_dirty = False
         # Handle mq.git as a bool with extended values
         try:
@@ -324,7 +324,7 @@
         self.applied_dirty = 0
         self.series_dirty = 0
         self.guards_dirty = False
-        self.active_guards = None
+        self.activeguards = None
 
     def diffopts(self, opts={}, patchfn=None):
         diffopts = patchmod.diffopts(self.ui, opts)
@@ -411,12 +411,12 @@
                 raise util.Abort(bad)
         guards = sorted(set(guards))
         self.ui.debug('active guards: %s\n' % ' '.join(guards))
-        self.active_guards = guards
+        self.activeguards = guards
         self.guards_dirty = True
 
     def active(self):
-        if self.active_guards is None:
-            self.active_guards = []
+        if self.activeguards is None:
+            self.activeguards = []
             try:
                 guards = self.opener.read(self.guardspath).split()
             except IOError, err:
@@ -429,8 +429,8 @@
                     self.ui.warn('%s:%d: %s\n' %
                                  (self.join(self.guardspath), i + 1, bad))
                 else:
-                    self.active_guards.append(guard)
-        return self.active_guards
+                    self.activeguards.append(guard)
+        return self.activeguards
 
     def setguards(self, idx, guards):
         for g in guards:
@@ -500,7 +500,7 @@
         if self.series_dirty:
             write_list(self.fullseries, self.seriespath)
         if self.guards_dirty:
-            write_list(self.active_guards, self.guardspath)
+            write_list(self.activeguards, self.guardspath)
         if self.added:
             qrepo = self.qrepo()
             if qrepo: