changeset 487:178419da6e0b

python/hgrc.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 21:25:40 -0700
parents c9aab7092af1
children 5f288c70acb6
files python/hgrc.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/python/hgrc.py	Sat Aug 10 21:13:42 2013 -0700
+++ b/python/hgrc.py	Sat Aug 10 21:25:40 2013 -0700
@@ -33,15 +33,14 @@
 @section('paths')
 def set_default(parser, default):
     """set [paths]:default"""
-    print 'OIOIOIOI!'
+    parser.set('paths', 'default-push', default_push)
+
 
 @section('paths')
 def set_default_push(parser, default_push):
     """
     set [paths]:default-push to `default_push`
     """
-    if 'paths' not in parser.sections():
-        parser.add_section('paths')
     parser.set('paths', 'default-push', default_push)