Patchwork D7950: verify: avoid spurious integrity warnings in verbose mode (issue6172)

login
register
mail settings
Submitter phabricator
Date Jan. 21, 2020, 1:02 p.m.
Message ID <0640e1fd76f6d8be3a58f72a70b1ce01@localhost.localdomain>
Download mbox | patch
Permalink /patch/44534/
State Not Applicable
Headers show

Comments

phabricator - Jan. 21, 2020, 1:02 p.m.
Closed by commit rHGe77b57e09bfa: verify: avoid spurious integrity warnings in verbose mode (issue6172) (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7950?vs=19454&id=19462

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7950/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7950

AFFECTED FILES
  mercurial/verify.py
  tests/test-unamend.t

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit
Cc: pulkit, mercurial-devel

Patch

diff --git a/tests/test-unamend.t b/tests/test-unamend.t
--- a/tests/test-unamend.t
+++ b/tests/test-unamend.t
@@ -346,6 +346,14 @@ 
   $ hg mv c wat
   $ hg unamend
 
+  $ hg verify -v
+  repository uses revlog format 1
+  checking changesets
+  checking manifests
+  crosschecking files in changesets and manifests
+  checking files
+  checked 28 changesets with 16 changes to 11 files
+
 Retained copies in new prdecessor commit
 
   $ hg exp --git
diff --git a/mercurial/verify.py b/mercurial/verify.py
--- a/mercurial/verify.py
+++ b/mercurial/verify.py
@@ -54,7 +54,7 @@ 
         self.havecl = len(repo.changelog) > 0
         self.havemf = len(repo.manifestlog.getstorage(b'')) > 0
         self.revlogv1 = repo.changelog.version != revlog.REVLOGV0
-        self.lrugetctx = util.lrucachefunc(repo.__getitem__)
+        self.lrugetctx = util.lrucachefunc(repo.unfiltered().__getitem__)
         self.refersmf = False
         self.fncachewarned = False
         # developer config: verify.skipflags