# HG changeset patch # User Thomas Arendsen Hein # Date 2008-02-09 18:13:57 # Node ID 218d5b9aa46637c86de577473e486233b509ecdb # Parent 0ad2ffbf6b3833c0ec50f725bf30f3a07e15e15c Remove trailing ! from two error messages as this was confusing. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -963,7 +963,7 @@ def grep(ui, repo, pattern, *pats, **opt try: regexp = re.compile(pattern, reflags) except Exception, inst: - ui.warn(_("grep: invalid match pattern: %s!\n") % inst) + ui.warn(_("grep: invalid match pattern: %s\n") % inst) return None sep, eol = ':', '\n' if opts['print0']: diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -286,7 +286,7 @@ class dirstate(object): self._changepath(f, '?') del self._map[f] except KeyError: - self._ui.warn(_("not in dirstate: %s!\n") % f) + self._ui.warn(_("not in dirstate: %s\n") % f) def clear(self): self._map = {} diff --git a/tests/test-grep.out b/tests/test-grep.out --- a/tests/test-grep.out +++ b/tests/test-grep.out @@ -1,5 +1,5 @@ % pattern error -grep: invalid match pattern: nothing to repeat! +grep: invalid match pattern: nothing to repeat % simple port:4:export port:4:vaportight