Patchwork D9427: cleanup: fix a few recent black formatting violations

login
register
mail settings
Submitter phabricator
Date Nov. 27, 2020, 10:01 p.m.
Message ID <differential-rev-PHID-DREV-ih5jfrnhkpkd63w6ssr4-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47706/
State Superseded
Headers show

Comments

phabricator - Nov. 27, 2020, 10:01 p.m.
mharbison72 created this revision.
Herald added a reviewer: durin42.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  hgext/git/gitlog.py
  setup.py

CHANGE DETAILS




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

Patch

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -816,8 +816,7 @@ 
                 if sys.version_info[0] >= 3:
                     fsdecode = os.fsdecode
                 dest = os.path.join(
-                    os.path.dirname(self.hgtarget),
-                    fsdecode(dllbasename),
+                    os.path.dirname(self.hgtarget), fsdecode(dllbasename),
                 )
 
                 if not os.path.exists(dest):
diff --git a/hgext/git/gitlog.py b/hgext/git/gitlog.py
--- a/hgext/git/gitlog.py
+++ b/hgext/git/gitlog.py
@@ -150,9 +150,7 @@ 
 
     def tiprev(self):
         t = self._db.execute(
-            'SELECT rev FROM changelog '
-            'ORDER BY REV DESC '
-            'LIMIT 1'
+            'SELECT rev FROM changelog ' 'ORDER BY REV DESC ' 'LIMIT 1'
         )
         return next(t)