# HG changeset patch # User Martin von Zweigbergk # Date 2020-11-23 20:31:53 # Node ID 50afeeeb7b7931aaaca535c0f1cf2cd17adcac0f # Parent 95c4cca641f6d8af6781d6f422efd7286c72d146 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 diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -5011,7 +5011,7 @@ def parents(ui, repo, file_=None, **opts 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) diff --git a/tests/test-parents.t b/tests/test-parents.t --- a/tests/test-parents.t +++ b/tests/test-parents.t @@ -53,7 +53,7 @@ hg parents c, single revision $ hg parents -r 3 c - abort: 'c' not found in manifest! + abort: 'c' not found in manifest [10] $ hg parents -r 2 diff --git a/tests/test-remotefilelog-prefetch.t b/tests/test-remotefilelog-prefetch.t --- a/tests/test-remotefilelog-prefetch.t +++ b/tests/test-remotefilelog-prefetch.t @@ -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