changeset 468:4853551536d6

python/hgrc.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 18:52:46 -0700
parents 980584d34134
children 764535e1f991
files python/hgrc.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/hgrc.py	Sat Aug 10 18:50:44 2013 -0700
+++ b/python/hgrc.py	Sat Aug 10 18:52:46 2013 -0700
@@ -13,14 +13,17 @@
 import sys
 from ConfigParser import RawConfigParser as ConfigParser
 
+#@parser # decorator makes this x-form path -> ConfigParser automagically
 def set_default_push(parser, default_push):
     """
     set [paths]:default_push to `default_push`
     """
     pass
 
-def set_default_push_to_ssh():
+def set_default_push_to_ssh(parser):
+    """
     pass
+    """
 
 def main(args=sys.argv[1:]):
 
@@ -110,6 +113,7 @@
 
     # alter .hgrc files
     for path, ini in config.items():
+
         import pdb; pdb.set_trace()
 
 if __name__ == '__main__':