##// END OF EJS Templates
blackbox: also log alias expansions...
Augie Fackler -
r29846:318e2b60 default
parent child Browse files
Show More
@@ -500,6 +500,8 b' class cmdalias(object):'
500 500 ui.debug("alias '%s' shadows command '%s'\n" %
501 501 (self.name, self.cmdname))
502 502
503 ui.log('commandalias', "alias '%s' expands to '%s'\n",
504 self.name, self.definition)
503 505 if util.safehasattr(self, 'shell'):
504 506 return self.fn(ui, *args, **opts)
505 507 else:
@@ -4,6 +4,8 b' setup'
4 4 > blackbox=
5 5 > mock=$TESTDIR/mockblackbox.py
6 6 > mq=
7 > [alias]
8 > confuse = log --limit 3
7 9 > EOF
8 10 $ hg init blackboxtest
9 11 $ cd blackboxtest
@@ -17,6 +19,18 b' command, exit codes, and duration'
17 19 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> add a exited 0 after * seconds (glob)
18 20 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000+ (5000)> blackbox
19 21
22 alias expansion is logged
23 $ hg confuse
24 $ hg blackbox
25 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> add a
26 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> add a exited 0 after * seconds (glob)
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)
29 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> confuse
30 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> alias 'confuse' expands to 'log --limit 3'
31 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> confuse exited 0 after * seconds (glob)
32 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox
33
20 34 incoming change tracking
21 35
22 36 create two heads to verify that we only see one change in the log later
General Comments 0
You need to be logged in to leave comments. Login now