equal
deleted
inserted
replaced
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: |