comparison 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
comparison
equal deleted inserted replaced
40006:422beffd71ba 40007:1470183068b8
133 def cmp(self, node, text): 133 def cmp(self, node, text):
134 """compare text with a given file revision 134 """compare text with a given file revision
135 135
136 returns True if text is different than what is stored. 136 returns True if text is different than what is stored.
137 """ 137 """
138 return storageutil.filerevisiondifferent(self, node, text) 138 return not storageutil.filedataequivalent(self, node, text)
139 139
140 def verifyintegrity(self, state): 140 def verifyintegrity(self, state):
141 return self._revlog.verifyintegrity(state) 141 return self._revlog.verifyintegrity(state)
142 142
143 def storageinfo(self, exclusivefiles=False, sharedfiles=False, 143 def storageinfo(self, exclusivefiles=False, sharedfiles=False,