D10229: formatting: fix redundant parentheses

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Wed Mar 17 11:07:16 UTC 2021


Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  These were introduced by 0d055849d5f9d682ef931d2566b760d5c6bf7e52 <https://phab.mercurial-scm.org/rHG0d055849d5f9d682ef931d2566b760d5c6bf7e52>.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

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

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -1279,7 +1279,7 @@
                     or size == -2  # other parent
                     or fn in copymap
                 ):
-                    if (stat.S_ISLNK(st.st_mode) and size != st.st_size):
+                    if stat.S_ISLNK(st.st_mode) and size != st.st_size:
                         # issue6456: Size returned may be longer due to
                         # encryption on EXT-4 fscrypt, undecided.
                         ladd(fn)



To: Alphare, #hg-reviewers
Cc: mercurial-patches, mercurial-devel


More information about the Mercurial-devel mailing list