Patchwork D7484: localrepo: mark nullrev has never filtered

login
register
mail settings
Submitter phabricator
Date Nov. 23, 2019, 1:03 p.m.
Message ID <80b3be737f976a22c551880bc7e5e697@localhost.localdomain>
Download mbox | patch
Permalink /patch/43483/
State Not Applicable
Headers show

Comments

phabricator - Nov. 23, 2019, 1:03 p.m.
marmoute updated this revision to Diff 18355.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7484?vs=18349&id=18355

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

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

AFFECTED FILES
  mercurial/localrepo.py
  tests/test-repo-filters-tiptoe.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-repo-filters-tiptoe.t b/tests/test-repo-filters-tiptoe.t
--- a/tests/test-repo-filters-tiptoe.t
+++ b/tests/test-repo-filters-tiptoe.t
@@ -52,7 +52,6 @@ 
 Getting basic changeset inforation about `null`
 
   $ hg log -r null -T "{node}\n{date}\n"
-  debug.filters: computing revision filter for "visible"
   0000000000000000000000000000000000000000
   0.00
 
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1532,7 +1532,7 @@ 
 
         # dealing with some special values
         if changeid == b'null' or changeid == nullrev:
-            return context.changectx(self, nullrev, nullid)
+            return context.changectx(self, nullrev, nullid, False)
         if changeid == b'tip':
             node = self.changelog.tip()
             rev = self.changelog.rev(node)