Mercurial > hg
comparison mercurial/revlog.py @ 42983:a45d670c2bfc
flagprocessors: return sidedata map in `_processflagsread`
Right now, flag processors does not return sidedata, by they will. So, we
prepare the caller to receive it.
Differential Revision: https://phab.mercurial-scm.org/D6811
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 03 Sep 2019 22:55:04 +0200 |
parents | 9d62f9fa332f |
children | bd5858c28bbe |
comparison
equal
deleted
inserted
replaced
42982:9d62f9fa332f | 42983:a45d670c2bfc |
---|---|
1661 sidedata = {} | 1661 sidedata = {} |
1662 if raw: | 1662 if raw: |
1663 validatehash = self._processflagsraw(rawtext, flags) | 1663 validatehash = self._processflagsraw(rawtext, flags) |
1664 text = rawtext | 1664 text = rawtext |
1665 else: | 1665 else: |
1666 text, validatehash = self._processflagsread(rawtext, flags) | 1666 r = self._processflagsread(rawtext, flags) |
1667 text, validatehash, sidedata = r | |
1667 if validatehash: | 1668 if validatehash: |
1668 self.checkhash(text, node, rev=rev) | 1669 self.checkhash(text, node, rev=rev) |
1669 if not validated: | 1670 if not validated: |
1670 self._revisioncache = (node, rev, rawtext) | 1671 self._revisioncache = (node, rev, rawtext) |
1671 | 1672 |