# HG changeset patch # User Pierre-Yves David # Date 1574556574 28800 # Node ID 3fd6ec54704c9965b52652af7d2d79c7d7062e8e # Parent f1c49bc79b4d88e810080659434627417885b171 locarepo: also fastpath `nullid` lookup in __getitem__ We already use that fastpath for `"null"` and `nullrev`, using it for `nullid` is similar. Differential Revision: https://phab.mercurial-scm.org/D7486 diff -r f1c49bc79b4d -r 3fd6ec54704c mercurial/localrepo.py --- a/mercurial/localrepo.py Sat Nov 23 13:59:17 2019 +0100 +++ b/mercurial/localrepo.py Sat Nov 23 16:49:34 2019 -0800 @@ -1531,7 +1531,7 @@ ] # dealing with some special values - if changeid == b'null' or changeid == nullrev: + if changeid == b'null' or changeid == nullrev or changeid == nullid: return context.changectx(self, nullrev, nullid, maybe_filtered=False) if changeid == b'tip': node = self.changelog.tip()