# HG changeset patch # User Mitchell Plamann # Date 2020-04-15 20:43:05 # Node ID 373dd22ae60ee45bf9f4d4652b3f59aabd1f7bf6 # Parent a9ff0742c8ea8984f12d462b40195bf229385a01 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 diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -180,7 +180,7 @@ class dirstate(object): @propertycache def _checkexec(self): - return util.checkexec(self._root) + return bool(util.checkexec(self._root)) @propertycache def _checkcase(self):