changeset 473:da087c5724d4

python/hgrc.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 19:11:11 -0700
parents 57dfffa7e44a
children 3326aea03a3b
files python/hgrc.py
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/hgrc.py	Sat Aug 10 19:07:24 2013 -0700
+++ b/python/hgrc.py	Sat Aug 10 19:11:11 2013 -0700
@@ -25,6 +25,9 @@
     pass
     """
 
+    # get default path
+    default = ''
+
 def main(args=sys.argv[1:]):
 
     # parse command line arguments
@@ -124,10 +127,15 @@
         # XXX crappy
         action_name = action_names.pop()
         parameter = actions.pop(action_name)
+        method = action_map[action_name]
 
         # apply to all files
         for path, ini in config.items():
-            import pdb; pdb.set_trace()
+            if parameter is not None:
+                method(ini, parameter)
+            else:
+                method(ini)
+
 
 if __name__ == '__main__':
     main()