# HG changeset patch # User Pierre-Yves David # Date 1574556380 28800 # Node ID b38cd2e6e12df52a4b773866b576b8d44b707b16 # Parent 1e87851dba63e6f3ca5e471cedc5be4a76506639 localrepo: mark nullrev has never filtered All repository have a null, and it cannot be filtered. Differential Revision: https://phab.mercurial-scm.org/D7484 diff -r 1e87851dba63 -r b38cd2e6e12d mercurial/localrepo.py --- a/mercurial/localrepo.py Sun Nov 17 06:06:38 2019 +0100 +++ b/mercurial/localrepo.py Sat Nov 23 16:46:20 2019 -0800 @@ -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, maybe_filtered=False) if changeid == b'tip': node = self.changelog.tip() rev = self.changelog.rev(node) diff -r 1e87851dba63 -r b38cd2e6e12d tests/test-repo-filters-tiptoe.t --- a/tests/test-repo-filters-tiptoe.t Sun Nov 17 06:06:38 2019 +0100 +++ b/tests/test-repo-filters-tiptoe.t Sat Nov 23 16:46:20 2019 -0800 @@ -54,6 +54,5 @@ 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