mercurial/dispatch.py
changeset 18693 633cd0c46e6a
parent 18691 4f485bd68f1d
child 18758 6aca4d1c744e
equal deleted inserted replaced
18692:af4387d8d1c7 18693:633cd0c46e6a
   332 
   332 
   333         args = shlex.split(self.definition)
   333         args = shlex.split(self.definition)
   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 "
   341                               "be given on the command line\n")
   341                               "be given on the command line\n")
   342                             % (self.name, invalidarg))
   342                             % (self.name, invalidarg))