# HG changeset patch # User Jeff Hammel # Date 1376195140 25200 # Node ID 178419da6e0b66f3b94188af3d40e5159c088e6a # Parent c9aab7092af14972a1ce385908452836bd3b0bb4 python/hgrc.py diff -r c9aab7092af1 -r 178419da6e0b python/hgrc.py --- 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)