Mercurial > hg > config
changeset 479:0a9e1e0d077c
python/hgrc.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 10 Aug 2013 19:51:35 -0700 |
parents | df60292c29b2 |
children | 529fd4e1087e |
files | python/hgrc.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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")