Mercurial > hg
diff mercurial/filelog.py @ 40007:1470183068b8
storageutil: invert logic of file data comparison
IMO things make more sense when the function is explicitly a test
for file data equivalence.
Not bothering with API since the function was introduced by the
previous commit.
Differential Revision: https://phab.mercurial-scm.org/D4802
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 28 Sep 2018 11:51:17 -0700 |
parents | 422beffd71ba |
children | 324b4b10351e |
line wrap: on
line diff
--- a/mercurial/filelog.py Fri Sep 28 11:47:53 2018 -0700 +++ b/mercurial/filelog.py Fri Sep 28 11:51:17 2018 -0700 @@ -135,7 +135,7 @@ returns True if text is different than what is stored. """ - return storageutil.filerevisiondifferent(self, node, text) + return not storageutil.filedataequivalent(self, node, text) def verifyintegrity(self, state): return self._revlog.verifyintegrity(state)