comparison mercurial/dirstate.py @ 44801:373dd22ae60e

dirstate: force _checkexec to return a bool posix.checkexec can return True, False, or None. The rust status implementation expects a boolean, so make sure _checkexec returns a boolean. Differential Revision: https://phab.mercurial-scm.org/D8432
author Mitchell Plamann <mplamann@janestreet.com>
date Wed, 15 Apr 2020 16:43:05 -0400
parents 4d1634e59f13
children 63edfea7dfde
comparison
equal deleted inserted replaced
44800:a9ff0742c8ea 44801:373dd22ae60e
178 def _checklink(self): 178 def _checklink(self):
179 return util.checklink(self._root) 179 return util.checklink(self._root)
180 180
181 @propertycache 181 @propertycache
182 def _checkexec(self): 182 def _checkexec(self):
183 return util.checkexec(self._root) 183 return bool(util.checkexec(self._root))
184 184
185 @propertycache 185 @propertycache
186 def _checkcase(self): 186 def _checkcase(self):
187 return not util.fscasesensitive(self._join(b'.hg')) 187 return not util.fscasesensitive(self._join(b'.hg'))
188 188