mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
Remove trailing ! from two error messages as this was confusing.
This commit is contained in:
parent
4c531a9dd1
commit
d8e42b5304
@ -963,7 +963,7 @@ def grep(ui, repo, pattern, *pats, **opts):
|
||||
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']:
|
||||
|
@ -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 = {}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user