dirstate: force _checkexec to return a bool
authorMitchell Plamann <mplamann@janestreet.com>
Wed, 15 Apr 2020 16:43:05 -0400
changeset 44801 373dd22ae60e
parent 44800 a9ff0742c8ea
child 44802 e0414fcd35e0
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
mercurial/dirstate.py
--- 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):