Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 42984:9d62f9fa332f
revlog: use the new sidedata map return in the sidedata method
So far things, seems logical.
Differential Revision: https://phab.mercurial-scm.org/D6810
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 03 Sep 2019 22:36:41 +0200 |
parents | 35ab2c1a58aa |
children | a45d670c2bfc |
comparison
equal
deleted
inserted
replaced
42983:35ab2c1a58aa | 42984:9d62f9fa332f |
---|---|
1621 | 1621 |
1622 This function currently return a dictionary. However, more advanced | 1622 This function currently return a dictionary. However, more advanced |
1623 mapping object will likely be used in the future for a more | 1623 mapping object will likely be used in the future for a more |
1624 efficient/lazy code. | 1624 efficient/lazy code. |
1625 """ | 1625 """ |
1626 # XXX will actualy return data once storage is implemented. | 1626 return self._revisiondata(nodeorrev, _df)[1] |
1627 return {} | |
1628 | 1627 |
1629 def _revisiondata(self, nodeorrev, _df=None, raw=False): | 1628 def _revisiondata(self, nodeorrev, _df=None, raw=False): |
1630 # deal with <nodeorrev> argument type | 1629 # deal with <nodeorrev> argument type |
1631 if isinstance(nodeorrev, int): | 1630 if isinstance(nodeorrev, int): |
1632 rev = nodeorrev | 1631 rev = nodeorrev |