Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 42885:4a3efe0febb5
revlog: stop using `_processflags` directly
We now use the specialized versions.
Differential Revision: https://phab.mercurial-scm.org/D6804
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 02 Sep 2019 17:05:52 +0200 |
parents | db4af1cb128a |
children | 0d1272783f24 |
comparison
equal
deleted
inserted
replaced
42884:1ebf1a1e14dd | 42885:4a3efe0febb5 |
---|---|
1647 | 1647 |
1648 if validated and flags == REVIDX_DEFAULT_FLAGS: | 1648 if validated and flags == REVIDX_DEFAULT_FLAGS: |
1649 # no extra flags set, no flag processor runs, text = rawtext | 1649 # no extra flags set, no flag processor runs, text = rawtext |
1650 return rawtext | 1650 return rawtext |
1651 | 1651 |
1652 text, validatehash = self._processflags(rawtext, flags, 'read', raw=raw) | 1652 if raw: |
1653 validatehash = self._processflagsraw(rawtext, flags) | |
1654 text = rawtext | |
1655 else: | |
1656 text, validatehash = self._processflagsread(rawtext, flags) | |
1653 if validatehash: | 1657 if validatehash: |
1654 self.checkhash(text, node, rev=rev) | 1658 self.checkhash(text, node, rev=rev) |
1655 if not validated: | 1659 if not validated: |
1656 self._revisioncache = (node, rev, rawtext) | 1660 self._revisioncache = (node, rev, rawtext) |
1657 | 1661 |