comparison mercurial/localrepo.py @ 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 09409a3fc3cc
children 3fd6ec54704c
comparison
equal deleted inserted replaced
43760:1e87851dba63 43761:b38cd2e6e12d
1530 if i not in self.changelog.filteredrevs 1530 if i not in self.changelog.filteredrevs
1531 ] 1531 ]
1532 1532
1533 # dealing with some special values 1533 # dealing with some special values
1534 if changeid == b'null' or changeid == nullrev: 1534 if changeid == b'null' or changeid == nullrev:
1535 return context.changectx(self, nullrev, nullid) 1535 return context.changectx(self, nullrev, nullid, maybe_filtered=False)
1536 if changeid == b'tip': 1536 if changeid == b'tip':
1537 node = self.changelog.tip() 1537 node = self.changelog.tip()
1538 rev = self.changelog.rev(node) 1538 rev = self.changelog.rev(node)
1539 return context.changectx(self, rev, node) 1539 return context.changectx(self, rev, node)
1540 1540