[Commented On] D10780: revlog: implement sidedata without using _revisiondata
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Wed Jun 2 03:11:50 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 28390.
â
refresh by Heptapod after a successful CI run (ð ð)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10780?vs=28293&id=28390
BRANCH
default
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/20210602/cda48840/attachment-0001.html>
More information about the Mercurial-patches
mailing list