mercurial/dispatch.py
changeset 36729 389b950f5190
parent 36720 3fdba7fb264d
child 37084 f0b6fbea00cf
equal deleted inserted replaced
36728:f14ba6eb2b5a 36729:389b950f5190
   156         # make sure to check fileset first, as revset can invoke fileset
   156         # make sure to check fileset first, as revset can invoke fileset
   157         similar = _getsimilar(inst.symbols, inst.function)
   157         similar = _getsimilar(inst.symbols, inst.function)
   158     if len(inst.args) > 1:
   158     if len(inst.args) > 1:
   159         write(_("hg: parse error at %s: %s\n") %
   159         write(_("hg: parse error at %s: %s\n") %
   160               (pycompat.bytestr(inst.args[1]), inst.args[0]))
   160               (pycompat.bytestr(inst.args[1]), inst.args[0]))
   161         if (inst.args[0][0] == ' '):
   161         if inst.args[0].startswith(' '):
   162             write(_("unexpected leading whitespace\n"))
   162             write(_("unexpected leading whitespace\n"))
   163     else:
   163     else:
   164         write(_("hg: parse error: %s\n") % inst.args[0])
   164         write(_("hg: parse error: %s\n") % inst.args[0])
   165         _reportsimilar(write, similar)
   165         _reportsimilar(write, similar)
   166     if inst.hint:
   166     if inst.hint: