Show More
@@ -248,7 +248,7 b' class cmdalias(object):' | |||||
248 | if self.shadows: |
|
248 | if self.shadows: | |
249 | ui.debug("alias '%s' shadows command\n" % self.name) |
|
249 | ui.debug("alias '%s' shadows command\n" % self.name) | |
250 |
|
250 | |||
251 | return self.fn(ui, *args, **opts) |
|
251 | return util.checksignature(self.fn)(ui, *args, **opts) | |
252 |
|
252 | |||
253 | def addaliases(ui, cmdtable): |
|
253 | def addaliases(ui, cmdtable): | |
254 | # aliases are processed after extensions have been loaded, so they |
|
254 | # aliases are processed after extensions have been loaded, so they |
@@ -14,6 +14,7 b" shortlog = log --template '{rev} {node|s" | |||||
14 | dln = lognull --debug |
|
14 | dln = lognull --debug | |
15 | nousage = rollback |
|
15 | nousage = rollback | |
16 | put = export -r 0 -o "\$FOO/%R.diff" |
|
16 | put = export -r 0 -o "\$FOO/%R.diff" | |
|
17 | rt = root | |||
17 |
|
18 | |||
18 | [defaults] |
|
19 | [defaults] | |
19 | mylog = -q |
|
20 | mylog = -q | |
@@ -64,3 +65,8 b' hg dln' | |||||
64 | echo '% path expanding' |
|
65 | echo '% path expanding' | |
65 | FOO=`pwd` hg put |
|
66 | FOO=`pwd` hg put | |
66 | cat 0.diff |
|
67 | cat 0.diff | |
|
68 | ||||
|
69 | echo '% invalid arguments' | |||
|
70 | hg rt foo | |||
|
71 | ||||
|
72 | exit 0 |
@@ -43,3 +43,16 b' diff -r 000000000000 -r e63c23eaa88a foo' | |||||
43 | +++ b/foo Thu Jan 01 00:00:00 1970 +0000 |
|
43 | +++ b/foo Thu Jan 01 00:00:00 1970 +0000 | |
44 | @@ -0,0 +1,1 @@ |
|
44 | @@ -0,0 +1,1 @@ | |
45 | +foo |
|
45 | +foo | |
|
46 | % invalid arguments | |||
|
47 | hg rt: invalid arguments | |||
|
48 | hg rt | |||
|
49 | ||||
|
50 | alias for: hg root | |||
|
51 | ||||
|
52 | print the root (top) of the current working directory | |||
|
53 | ||||
|
54 | Print the root directory of the current repository. | |||
|
55 | ||||
|
56 | Returns 0 on success. | |||
|
57 | ||||
|
58 | use "hg -v help rt" to show global options |
General Comments 0
You need to be logged in to leave comments.
Login now