Mercurial > hg > config
comparison python/hgrc.py @ 490:67404c3a4d75
python/hgrc.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 10 Aug 2013 23:05:05 -0700 |
parents | 9b95f12fef36 |
children | ab405b339112 |
comparison
equal
deleted
inserted
replaced
489:9b95f12fef36 | 490:67404c3a4d75 |
---|---|
110 ) | 110 ) |
111 actions = [(name, getattr(options, name)) | 111 actions = [(name, getattr(options, name)) |
112 for name in available_actions | 112 for name in available_actions |
113 if getattr(options, name)] | 113 if getattr(options, name)] |
114 if not actions: | 114 if not actions: |
115 # add a default action for our convenience | |
115 actions = [('default_push_ssh', True)] | 116 actions = [('default_push_ssh', True)] |
116 actions = OrderedDict(actions) | 117 actions = OrderedDict(actions) |
118 if not actions: | |
119 parser.error("Please specify an action") | |
117 | 120 |
118 # find all hgrc files | 121 # find all hgrc files |
119 hgrc = [] | 122 hgrc = [] |
120 missing = [] | 123 missing = [] |
121 not_hg = [] | 124 not_hg = [] |