Mercurial > hg
view tests/test-progress.out @ 11330:713ae78bb583
provide pre- and post- hooks with parsed command line arguments.
python hooks are passed two new keyword arguments:
- opts: a dict of options; unsepcified options are set to their default
- pats: a list of arguments
shell hooks receive two new variables containing string representations
of the above data:
- $HG_OPTS
- $HG_PATS
for example, the opts and pats for 'hg -f v1.1' would be:
{'force': True, 'message': '', 'rev': '', 'user': '', 'date': '', 'local': None, 'remove': None, 'mq': None}
['v1.1']
author | Chad Dombrova <chadrik@gmail.com> |
---|---|
date | Thu, 10 Jun 2010 09:32:19 -0700 |
parents | 83af68e38be3 |
children |
line wrap: on
line source
% test default params, display nothing because of delay % test with delay=0, refresh=0 loop [ ] 0/3 loop [=====================> ] 1/3 loop [============================================> ] 2/3 % test refresh is taken in account % test format options 1 0/2 loop lo 1/2 loop lo % test format options 2 0/2 p.0 [ ] 1/2 p.1 [=================================> ] % test format options and indeterminate progress 0 loop.0 [ <=> ] 1 loop.1 [ <=> ] % make sure things don't fall over if count > total loop [ ] 0/4 loop [================> ] 1/4 loop [=================================> ] 2/4 loop [==================================================> ] 3/4 loop [===================================================================>] 4/4 loop [ <=> ] 5/4 % test immediate progress completion