Submitter | phabricator |
---|---|
Date | Nov. 22, 2019, 9:19 a.m. |
Message ID | <differential-rev-PHID-DREV-qyvphhhe752tknjfxex4-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/43409/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1530,14 +1530,14 @@ if i not in self.changelog.filteredrevs ] + # dealing with some special values + if changeid == b'null': + return context.changectx(self, nullrev, nullid) # dealing with arbitrary values try: if isinstance(changeid, int): node = self.changelog.node(changeid) rev = changeid - elif changeid == b'null': - node = nullid - rev = nullrev elif changeid == b'tip': node = self.changelog.tip() rev = self.changelog.rev(node)