changeset 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 a9ff0742c8ea
children e0414fcd35e0
files mercurial/dirstate.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):