Show More
@@ -334,7 +334,7 b' class cmdalias(object):' | |||
|
334 | 334 | self.cmdname = cmd = args.pop(0) |
|
335 | 335 | args = map(util.expandpath, args) |
|
336 | 336 | |
|
337 | for invalidarg in ("--cwd", "-R", "--repository", "--repo"): | |
|
337 | for invalidarg in ("--cwd", "-R", "--repository", "--repo", "--config"): | |
|
338 | 338 | if _earlygetopt([invalidarg], args): |
|
339 | 339 | def fn(ui, *args): |
|
340 | 340 | ui.warn(_("error in definition for alias '%s': %s may only " |
@@ -17,6 +17,7 b'' | |||
|
17 | 17 | > no-R = status -R elsewhere |
|
18 | 18 | > no--repo = status --repo elsewhere |
|
19 | 19 | > no--repository = status --repository elsewhere |
|
20 | > no--config = status --config a.config=1 | |
|
20 | 21 | > mylog = log |
|
21 | 22 | > lognull = log -r null |
|
22 | 23 | > shortlog = log --template '{rev} {node|short} | {date|isodate}\n' |
@@ -106,6 +107,8 b' invalid options' | |||
|
106 | 107 | error in definition for alias 'no--repository': --repository may only be given on the command line |
|
107 | 108 | $ hg help no--repository |
|
108 | 109 | error in definition for alias 'no--repository': --repository may only be given on the command line |
|
110 | $ hg no--config | |
|
111 | error in definition for alias 'no--config': --config may only be given on the command line | |
|
109 | 112 | |
|
110 | 113 | optional repository |
|
111 | 114 |
General Comments 0
You need to be logged in to leave comments.
Login now