Patchwork D8180: nodemap: check that a simple lookup works fine

login
register
mail settings
Submitter phabricator
Date March 9, 2020, 10:03 a.m.
Message ID <eeeacb0c203c52a18728d257edbfb8e8@localhost.localdomain>
Download mbox | patch
Permalink /patch/45631/
State Not Applicable
Headers show

Comments

phabricator - March 9, 2020, 10:03 a.m.
Closed by commit rHGb4e098628646: nodemap: check that a simple lookup works fine (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8180?vs=20382&id=20623

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

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

AFFECTED FILES
  tests/test-persistent-nodemap.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-persistent-nodemap.t b/tests/test-persistent-nodemap.t
--- a/tests/test-persistent-nodemap.t
+++ b/tests/test-persistent-nodemap.t
@@ -19,6 +19,13 @@ 
   data-unused: 0
   $ f --size .hg/store/00changelog.n
   .hg/store/00changelog.n: size=42
+
+Simple lookup works
+
+  $ ANYNODE=`hg log --template '{node|short}\n' --rev tip`
+  $ hg log -r "$ANYNODE" --template '{rev}\n'
+  5000
+
   $ f --sha256 .hg/store/00changelog-*.nd
   .hg/store/00changelog-????????????????.nd: sha256=b961925120e1c9bc345c199b2cc442abc477029fdece37ef9d99cbe59c0558b7 (glob)
   $ hg debugnodemap --dump-new | f --sha256 --size