Submitter | phabricator |
---|---|
Date | Nov. 8, 2019, 9:31 a.m. |
Message ID | <differential-rev-PHID-DREV-fswmmadb3iz3dtwv7as2-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/42915/ |
State | Superseded |
Headers | show |
Comments
This revision is now accepted and ready to land. indygreg added a comment. indygreg accepted this revision. Note that this adds an extra lookup to calls to `rev()`, which is often used in tight loops. But I think things may be fine. And we can always reintroduce the property if it shows up in perf tests. REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7317/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7317 To: marmoute, indygreg, #hg-reviewers Cc: mercurial-devel
Patch
diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -661,7 +661,7 @@ def rev(self, node): try: - return self._nodecache[node] + return self.index.nodemap[node] except TypeError: raise except error.RevlogError: