Patchwork D9512: formatting: re-blacken match.py

login
register
mail settings
Submitter phabricator
Date Dec. 3, 2020, 6:47 a.m.
Message ID <differential-rev-PHID-DREV-lohufzw7l5waj5po6aay-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47794/
State Superseded
Headers show

Comments

phabricator - Dec. 3, 2020, 6:47 a.m.
mharbison72 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -575,7 +575,7 @@ 
     # directory hierarchies are relatively shallow and hash lookup is cheap.
     if l > 5:
         return any(
-                parentdir in prefix_set for parentdir in pathutil.finddirs(path)
+            parentdir in prefix_set for parentdir in pathutil.finddirs(path)
         )
 
     # FIXME: Ideally we'd never get to this point if this is the case - we'd
@@ -640,10 +640,7 @@ 
     def visitdir(self, dir):
         if self._prefix and dir in self._fileset:
             return b'all'
-        return (
-            dir in self._dirs
-            or path_or_parents_in_set(dir, self._fileset)
-        )
+        return dir in self._dirs or path_or_parents_in_set(dir, self._fileset)
 
     def visitchildrenset(self, dir):
         ret = self.visitdir(dir)