Mercurial > hg
changeset 43761:b38cd2e6e12d
localrepo: mark nullrev has never filtered
All repository have a null, and it cannot be filtered.
Differential Revision: https://phab.mercurial-scm.org/D7484
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 23 Nov 2019 16:46:20 -0800 |
parents | 1e87851dba63 |
children | f1c49bc79b4d |
files | mercurial/localrepo.py tests/test-repo-filters-tiptoe.t |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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