Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 51021:299b7b5440db
revlog: drop the df argument to `sidedata`
The intend of this argument is better filled by the `revlog.reading` or
`revlog._writing` context. So we drop it to leave rooms for further cleanup and
improvements.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 26 Sep 2023 00:55:49 +0200 |
parents | 14de15825253 |
children | 9011c38b4f65 |
comparison
equal
deleted
inserted
replaced
51020:14de15825253 | 51021:299b7b5440db |
---|---|
1958 """return an uncompressed revision of a given node or revision | 1958 """return an uncompressed revision of a given node or revision |
1959 number. | 1959 number. |
1960 """ | 1960 """ |
1961 return self._revisiondata(nodeorrev) | 1961 return self._revisiondata(nodeorrev) |
1962 | 1962 |
1963 def sidedata(self, nodeorrev, _df=None): | 1963 def sidedata(self, nodeorrev): |
1964 """a map of extra data related to the changeset but not part of the hash | 1964 """a map of extra data related to the changeset but not part of the hash |
1965 | 1965 |
1966 This function currently return a dictionary. However, more advanced | 1966 This function currently return a dictionary. However, more advanced |
1967 mapping object will likely be used in the future for a more | 1967 mapping object will likely be used in the future for a more |
1968 efficient/lazy code. | 1968 efficient/lazy code. |