Patchwork D10079: patch: fix a formatting issue

login
register
mail settings
Submitter phabricator
Date Feb. 26, 2021, 11:06 a.m.
Message ID <differential-rev-PHID-DREV-bwgdbp3iqtluf2wkpyel-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48394/
State Superseded
Headers show

Comments

phabricator - Feb. 26, 2021, 11:06 a.m.
khanchi97 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

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

AFFECTED FILES
  mercurial/patch.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -3105,9 +3105,7 @@ 
     if binary and opts.git and not opts.nobinary:
         text = mdiff.b85diff(content1, content2)
         if text:
-            header.append(
-                b'index %s..%s' % (index1, index2)
-            )
+            header.append(b'index %s..%s' % (index1, index2))
         hunks = ((None, [text]),)
     else:
         if opts.git and opts.index > 0: