Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 42882:db4af1cb128a
flagprocessors: use _processflagswrite for write operation
There are no ambiguity for 'write' operation so it is simple to replace.
Differential Revision: https://phab.mercurial-scm.org/D6801
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Aug 2019 19:07:49 +0200 |
parents | 5bb68fb72df2 |
children | 4a3efe0febb5 |
comparison
equal
deleted
inserted
replaced
42881:87a934684c3b | 42882:db4af1cb128a |
---|---|
1821 % self.indexfile) | 1821 % self.indexfile) |
1822 | 1822 |
1823 if flags: | 1823 if flags: |
1824 node = node or self.hash(text, p1, p2) | 1824 node = node or self.hash(text, p1, p2) |
1825 | 1825 |
1826 rawtext, validatehash = self._processflags(text, flags, 'write') | 1826 rawtext, validatehash = self._processflagswrite(text, flags) |
1827 | 1827 |
1828 # If the flag processor modifies the revision data, ignore any provided | 1828 # If the flag processor modifies the revision data, ignore any provided |
1829 # cachedelta. | 1829 # cachedelta. |
1830 if rawtext != text: | 1830 if rawtext != text: |
1831 cachedelta = None | 1831 cachedelta = None |