Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 45922:50afeeeb7b79
errors: consistently don't use trailing "!" in "not found in manifest" message
We already had some places with the same message without the trailing
"!".
Differential Revision: https://phab.mercurial-scm.org/D9379
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 23 Nov 2020 12:31:53 -0800 |
parents | e131dbf6ee15 |
children | 777e8d88f703 |
comparison
equal
deleted
inserted
replaced
45921:95c4cca641f6 | 45922:50afeeeb7b79 |
---|---|
5009 try: | 5009 try: |
5010 filenodes.append(cp.filenode(file_)) | 5010 filenodes.append(cp.filenode(file_)) |
5011 except error.LookupError: | 5011 except error.LookupError: |
5012 pass | 5012 pass |
5013 if not filenodes: | 5013 if not filenodes: |
5014 raise error.InputError(_(b"'%s' not found in manifest!") % file_) | 5014 raise error.InputError(_(b"'%s' not found in manifest") % file_) |
5015 p = [] | 5015 p = [] |
5016 for fn in filenodes: | 5016 for fn in filenodes: |
5017 fctx = repo.filectx(file_, fileid=fn) | 5017 fctx = repo.filectx(file_, fileid=fn) |
5018 p.append(fctx.node()) | 5018 p.append(fctx.node()) |
5019 else: | 5019 else: |