Show More
@@ -92,13 +92,8 b' def _formatparse(write, inst):' | |||
|
92 | 92 | if inst.hint: |
|
93 | 93 | write(_("(%s)\n") % inst.hint) |
|
94 | 94 | |
|
95 | def _mayberepr(a): | |
|
96 | if ' ' in a: | |
|
97 | return encoding.strtolocal(repr(a)) | |
|
98 | return a | |
|
99 | ||
|
100 | 95 | def _formatargs(args): |
|
101 |
return ' '.join( |
|
|
96 | return ' '.join(util.shellquote(a) for a in args) | |
|
102 | 97 | |
|
103 | 98 | def dispatch(req): |
|
104 | 99 | "run the command specified in req.args" |
@@ -25,7 +25,7 b' alias expansion is logged' | |||
|
25 | 25 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> add a |
|
26 | 26 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> add a exited 0 after * seconds (glob) |
|
27 | 27 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000+ (5000)> blackbox |
|
28 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000+ (5000)> blackbox --config blackbox.dirty=True exited 0 after * seconds (glob) | |
|
28 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000+ (5000)> blackbox --config 'blackbox.dirty=True' exited 0 after * seconds (glob) | |
|
29 | 29 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> confuse |
|
30 | 30 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> alias 'confuse' expands to 'log --limit 3' |
|
31 | 31 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> confuse exited 0 after * seconds (glob) |
@@ -139,7 +139,7 b'' | |||
|
139 | 139 | $ hg blackbox -l 9 |
|
140 | 140 | 1970/01/01 00:00:00 bob @cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b (5000)> devel-warn: revset "oldstyle" uses list instead of smartset |
|
141 | 141 | (compatibility will be dropped after Mercurial-3.9, update your code.) at: *mercurial/revset.py:* (mfunc) (glob) |
|
142 | 1970/01/01 00:00:00 bob @cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b (5000)> log -r oldstyle() -T {rev}\n exited 0 after * seconds (glob) | |
|
142 | 1970/01/01 00:00:00 bob @cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b (5000)> log -r 'oldstyle()' -T '{rev}\n' exited 0 after * seconds (glob) | |
|
143 | 143 | 1970/01/01 00:00:00 bob @cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b (5000)> oldanddeprecated |
|
144 | 144 | 1970/01/01 00:00:00 bob @cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b (5000)> devel-warn: foorbar is deprecated, go shopping |
|
145 | 145 | (compatibility will be dropped after Mercurial-42.1337, update your code.) at: $TESTTMP/buggylocking.py:* (oldanddeprecated) (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now