Mercurial > hg-stable
comparison tests/test-dispatch.t @ 35232:4edd2202f7d7
dispatch: alias --repo to --repository while parsing early options
This prepares for replacing old _early*opt() functions. My initial attempt
was to extend options table to support 'repository|repo' syntax. It worked,
but seemed too invasive. So I decided to add an optional argument to
fancyopts() instead.
This also changes the nevernegate dict to be keyed by a canonical_name,
not by an option-name for clarity.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 25 Nov 2017 17:03:52 +0900 |
parents | 8feef8ef8389 |
children | 5b569d512fbd |
comparison
equal
deleted
inserted
replaced
35231:66c11a66ad1a | 35232:4edd2202f7d7 |
---|---|
147 | 147 |
148 $ HGPLAIN=+strictflags hg --config='hooks.pre-log=false' log -b default | 148 $ HGPLAIN=+strictflags hg --config='hooks.pre-log=false' log -b default |
149 abort: pre-log hook exited with status 1 | 149 abort: pre-log hook exited with status 1 |
150 [255] | 150 [255] |
151 $ HGPLAIN=+strictflags hg --cwd .. -q -Ra log -b default | 151 $ HGPLAIN=+strictflags hg --cwd .. -q -Ra log -b default |
152 0:cb9a9f314b8b | |
153 $ HGPLAIN=+strictflags hg --cwd .. -q --repository a log -b default | |
154 0:cb9a9f314b8b | |
155 $ HGPLAIN=+strictflags hg --cwd .. -q --repo a log -b default | |
152 0:cb9a9f314b8b | 156 0:cb9a9f314b8b |
153 | 157 |
154 For compatibility reasons, HGPLAIN=+strictflags is not enabled by plain HGPLAIN: | 158 For compatibility reasons, HGPLAIN=+strictflags is not enabled by plain HGPLAIN: |
155 | 159 |
156 $ HGPLAIN= hg log --config='hooks.pre-log=false' -b default | 160 $ HGPLAIN= hg log --config='hooks.pre-log=false' -b default |