[Commented On] D11711: parsers: don't ask about the exec bit on platforms that don't have it

baymax (Baymax, Your Personal Patch-care Companion) phabricator at mercurial-scm.org
Thu Oct 21 17:51:07 UTC 2021


baymax added a comment.
baymax updated this revision to Diff 30974.


  ✅ refresh by Heptapod after a successful CI run (🐙 💚)

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11711?vs=30957&id=30974

BRANCH
  default

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

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

AFFECTED FILES
  mercurial/cext/parsers.c

CHANGE DETAILS

diff --git a/mercurial/cext/parsers.c b/mercurial/cext/parsers.c
--- a/mercurial/cext/parsers.c
+++ b/mercurial/cext/parsers.c
@@ -260,11 +260,16 @@
 {
 	int flags = self->flags;
 	int mode = dirstate_item_c_v1_mode(self);
+#ifdef S_IXUSR
+	/* This is for platforms with an exec bit */
 	if ((mode & S_IXUSR) != 0) {
 		flags |= dirstate_flag_mode_exec_perm;
 	} else {
 		flags &= ~dirstate_flag_mode_exec_perm;
 	}
+#else
+	flags &= ~dirstate_flag_mode_exec_perm;
+#endif
 	if (S_ISLNK(mode)) {
 		flags |= dirstate_flag_mode_is_symlink;
 	} else {



To: Alphare, #hg-reviewers, spectral
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211021/60512c73/attachment-0002.html>


More information about the Mercurial-patches mailing list