##// END OF EJS Templates
dispatch: also a separate warning message on aliases with --config...
Simon Heimberg -
r18693:633cd0c4 default
parent child Browse files
Show More
@@ -334,7 +334,7 b' class cmdalias(object):'
334 self.cmdname = cmd = args.pop(0)
334 self.cmdname = cmd = args.pop(0)
335 args = map(util.expandpath, args)
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 if _earlygetopt([invalidarg], args):
338 if _earlygetopt([invalidarg], args):
339 def fn(ui, *args):
339 def fn(ui, *args):
340 ui.warn(_("error in definition for alias '%s': %s may only "
340 ui.warn(_("error in definition for alias '%s': %s may only "
@@ -17,6 +17,7 b''
17 > no-R = status -R elsewhere
17 > no-R = status -R elsewhere
18 > no--repo = status --repo elsewhere
18 > no--repo = status --repo elsewhere
19 > no--repository = status --repository elsewhere
19 > no--repository = status --repository elsewhere
20 > no--config = status --config a.config=1
20 > mylog = log
21 > mylog = log
21 > lognull = log -r null
22 > lognull = log -r null
22 > shortlog = log --template '{rev} {node|short} | {date|isodate}\n'
23 > shortlog = log --template '{rev} {node|short} | {date|isodate}\n'
@@ -106,6 +107,8 b' invalid options'
106 error in definition for alias 'no--repository': --repository may only be given on the command line
107 error in definition for alias 'no--repository': --repository may only be given on the command line
107 $ hg help no--repository
108 $ hg help no--repository
108 error in definition for alias 'no--repository': --repository may only be given on the command line
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 optional repository
113 optional repository
111
114
General Comments 0
You need to be logged in to leave comments. Login now