diff mercurial/dirstate.py @ 44878: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
line wrap: on
line diff
--- a/mercurial/dirstate.py	Tue Apr 21 13:37:45 2020 -0700
+++ b/mercurial/dirstate.py	Wed Apr 15 16:43:05 2020 -0400
@@ -180,7 +180,7 @@
 
     @propertycache
     def _checkexec(self):
-        return util.checkexec(self._root)
+        return bool(util.checkexec(self._root))
 
     @propertycache
     def _checkcase(self):