# HG changeset patch # User Jeff Hammel # Date 1376189495 25200 # Node ID 0a9e1e0d077cdb84556a57a679b33fb63d91bb29 # Parent df60292c29b22a370a5c8c976fa23230fc805107 python/hgrc.py diff -r df60292c29b2 -r 0a9e1e0d077c python/hgrc.py --- a/python/hgrc.py Sat Aug 10 19:37:50 2013 -0700 +++ b/python/hgrc.py Sat Aug 10 19:51:35 2013 -0700 @@ -16,6 +16,9 @@ #@parser # decorator makes this x-form path -> ConfigParser automagically #@section('paths') +def set_default(parser, default): + """set [paths]:default""" + def set_default_push(parser, default_push): """ set [paths]:default-push to `default_push` @@ -62,6 +65,8 @@ help="use `default` entries for `default-push`") parser.add_option('--push', '--default-push', dest='default_push', help="set [paths] default-push location") + parser.add_option('--default', dest='default', + help="set [paths] default entry") parser.add_option('-p', '--print', dest='print_ini', action='store_true', default=False, help="print .ini contents")