# HG changeset patch # User Pierre-Yves David # Date 2019-11-24 00:49:34 # Node ID c9d1e2ec1e2ee276634573a25663af1fc41f24ed # Parent e3c0f9c2c376fa91004c73b90671c0f022cd9a8e 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 --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1531,7 +1531,7 @@ class localrepository(object): ] # 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()