changeset 46064:1f0ed7e63c2a

formatting: re-blacken match.py Differential Revision: https://phab.mercurial-scm.org/D9512
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 03 Dec 2020 01:45:23 -0500
parents 88de2639901b
children 56a5ea353182
files mercurial/match.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/match.py	Mon Dec 07 11:23:34 2020 +0100
+++ b/mercurial/match.py	Thu Dec 03 01:45:23 2020 -0500
@@ -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)