Patchwork D8432: dirstate: force _checkexec to return a bool

login
register
mail settings
Submitter phabricator
Date April 17, 2020, 6:02 p.m.
Message ID <058f3e094a5d56ba3f595f0624fc2336@localhost.localdomain>
Download mbox | patch
Permalink /patch/46183/
State Not Applicable
Headers show

Comments

phabricator - April 17, 2020, 6:02 p.m.
mplamann edited the summary of this revision.
mplamann retitled this revision from "dirstate: convert _checkexec to a bool when calling rustmod.status" to "dirstate: force _checkexec to return a bool".
mplamann updated this revision to Diff 21154.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8432?vs=21109&id=21154

BRANCH
  default

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8432/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8432

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS




To: mplamann, #hg-reviewers
Cc: marmoute, mercurial-devel

Patch

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -180,7 +180,7 @@ 
 
     @propertycache
     def _checkexec(self):
-        return util.checkexec(self._root)
+        return bool(util.checkexec(self._root))
 
     @propertycache
     def _checkcase(self):