changeset 45907: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 95c4cca641f6
children 122f0b59f5f0
files mercurial/commands.py tests/test-parents.t tests/test-remotefilelog-prefetch.t
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Nov 23 11:18:48 2020 -0800
+++ b/mercurial/commands.py	Mon Nov 23 12:31:53 2020 -0800
@@ -5011,7 +5011,7 @@
             except error.LookupError:
                 pass
         if not filenodes:
-            raise error.InputError(_(b"'%s' not found in manifest!") % file_)
+            raise error.InputError(_(b"'%s' not found in manifest") % file_)
         p = []
         for fn in filenodes:
             fctx = repo.filectx(file_, fileid=fn)
--- a/tests/test-parents.t	Mon Nov 23 11:18:48 2020 -0800
+++ b/tests/test-parents.t	Mon Nov 23 12:31:53 2020 -0800
@@ -53,7 +53,7 @@
   
 
   $ hg parents -r 3 c
-  abort: 'c' not found in manifest!
+  abort: 'c' not found in manifest
   [10]
 
   $ hg parents -r 2
--- a/tests/test-remotefilelog-prefetch.t	Mon Nov 23 11:18:48 2020 -0800
+++ b/tests/test-remotefilelog-prefetch.t	Mon Nov 23 12:31:53 2020 -0800
@@ -239,7 +239,7 @@
 .. hopefully this flakyness is not hiding any actual bug.
   $ hg revert -a -r 1 || true
   ? files fetched over 1 fetches - (? misses, 0.00% hit ratio) over * (glob)
-  abort: z2@109c3a557a73: not found in manifest! (?)
+  abort: z2@109c3a557a73: not found in manifest (?)
   $ find $CACHEDIR -type f | sort
   $TESTTMP/hgcache/master/11/f6ad8ec52a2984abaafd7c3b516503785c2072/ef95c5376f34698742fe34f315fd82136f8f68c0
   $TESTTMP/hgcache/master/39/5df8f7c51f007019cb30201c49e884b46b92fa/69a1b67522704ec122181c0890bd16e9d3e7516a