changeset 50101:bbe3a65bbd96

subrepo: let black expand some call on multiple lines early newer version of black are righfully doing this, so I apply it before more semantic change to reduce noise in the next changeset.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 04 Feb 2023 12:14:19 +0100
parents e8c170a6571d
children 2264e775512b
files mercurial/subrepo.py
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/subrepo.py	Wed Dec 14 00:43:24 2022 +0100
+++ b/mercurial/subrepo.py	Sat Feb 04 12:14:19 2023 +0100
@@ -570,7 +570,13 @@
     @annotatesubrepoerror
     def add(self, ui, match, prefix, uipathfn, explicitonly, **opts):
         return cmdutil.add(
-            ui, self._repo, match, prefix, uipathfn, explicitonly, **opts
+            ui,
+            self._repo,
+            match,
+            prefix,
+            uipathfn,
+            explicitonly,
+            **opts,
         )
 
     @annotatesubrepoerror
@@ -621,7 +627,7 @@
                 match,
                 prefix=prefix,
                 listsubrepos=True,
-                **opts
+                **opts,
             )
         except error.RepoLookupError as inst:
             self.ui.warn(
@@ -1123,7 +1129,7 @@
             stdout=subprocess.PIPE,
             stderr=subprocess.PIPE,
             env=procutil.tonativeenv(env),
-            **extrakw
+            **extrakw,
         )
         stdout, stderr = map(util.fromnativeeol, p.communicate())
         stderr = stderr.strip()
@@ -1488,7 +1494,7 @@
             close_fds=procutil.closefds,
             stdout=subprocess.PIPE,
             stderr=errpipe,
-            **extrakw
+            **extrakw,
         )
         if stream:
             return p.stdout, None