[Updated] D10780: revlog: implement sidedata without using _revisiondata
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Jun 7 09:22:50 UTC 2021
Closed by commit rHGd6a52783d2ba: revlog: implement sidedata without using _revisiondata (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10780?vs=28439&id=28484
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10780/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10780
AFFECTED FILES
mercurial/revlog.py
CHANGE DETAILS
diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1976,7 +1976,12 @@
mapping object will likely be used in the future for a more
efficient/lazy code.
"""
- return self._revisiondata(nodeorrev, _df)[1]
+ # deal with <nodeorrev> argument type
+ if isinstance(nodeorrev, int):
+ rev = nodeorrev
+ else:
+ rev = self.rev(nodeorrev)
+ return self._sidedata(rev)
def _revisiondata(self, nodeorrev, _df=None, raw=False):
# deal with <nodeorrev> argument type
To: marmoute, indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210607/bcf0faf9/attachment-0001.html>
More information about the Mercurial-patches
mailing list