Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 42994:dff95420480f
flagprocessors: make `processflagsraw` a module level function
One more steps toward removing the mixin.
Differential Revision: https://phab.mercurial-scm.org/D6820
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 07 Sep 2019 00:16:32 +0200 |
parents | eb5048f8c533 |
children | 01304095256c |
comparison
equal
deleted
inserted
replaced
42993:eb5048f8c533 | 42994:dff95420480f |
---|---|
1658 # no extra flags set, no flag processor runs, text = rawtext | 1658 # no extra flags set, no flag processor runs, text = rawtext |
1659 return rawtext, {} | 1659 return rawtext, {} |
1660 | 1660 |
1661 sidedata = {} | 1661 sidedata = {} |
1662 if raw: | 1662 if raw: |
1663 validatehash = self._processflagsraw(rawtext, flags) | 1663 validatehash = flagutil.processflagsraw(self, rawtext, flags) |
1664 text = rawtext | 1664 text = rawtext |
1665 else: | 1665 else: |
1666 r = flagutil.processflagsread(self, rawtext, flags) | 1666 r = flagutil.processflagsread(self, rawtext, flags) |
1667 text, validatehash, sidedata = r | 1667 text, validatehash, sidedata = r |
1668 if validatehash: | 1668 if validatehash: |