changeset 471:dc179368b7d0

python/hgrc.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 19:05:32 -0700
parents 949ca4b2f2d1
children 57dfffa7e44a
files python/hgrc.py
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/python/hgrc.py	Sat Aug 10 19:04:19 2013 -0700
+++ b/python/hgrc.py	Sat Aug 10 19:05:32 2013 -0700
@@ -113,13 +113,18 @@
 
     # map of actions -> functions;
     # XXX this is pretty improv; to be improved
-    action_map = {'default_push_ssh': set_default_push_to_ssh
+    action_map = {'default_push_ssh': set_default_push_to_ssh,
                   'default_push': set_default_push
-        }
+                  }
 
     # alter .hgrc files
+    action_names = actions.keys()
     while actions:
 
+        # XXX crappy
+        action, parameter = actions.pop(action_names.pop())
+
+        # apply to all files
         for path, ini in config.items():
             import pdb; pdb.set_trace()