Patchwork D1832: style: remove multiple statement on a single line

login
register
mail settings
Submitter phabricator
Date Jan. 14, 2018, 7:36 p.m.
Message ID <22d46f7b30aea56f377d2855b59a12ee@localhost.localdomain>
Download mbox | patch
Permalink /patch/26743/
State Not Applicable
Headers show

Comments

phabricator - Jan. 14, 2018, 7:36 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGab11af15a149: style: remove multiple statement on a single line (authored by lothiraldan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1832?vs=4749&id=4820

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

AFFECTED FILES
  hgext/convert/git.py

CHANGE DETAILS




To: lothiraldan, #hg-reviewers, pulkit, indygreg
Cc: mercurial-devel

Patch

diff --git a/hgext/convert/git.py b/hgext/convert/git.py
--- a/hgext/convert/git.py
+++ b/hgext/convert/git.py
@@ -342,13 +342,15 @@ 
                 p = v.split()
                 tm, tz = p[-2:]
                 author = " ".join(p[:-2])
-                if author[0] == "<": author = author[1:-1]
+                if author[0] == "<":
+                    author = author[1:-1]
                 author = self.recode(author)
             if n == "committer":
                 p = v.split()
                 tm, tz = p[-2:]
                 committer = " ".join(p[:-2])
-                if committer[0] == "<": committer = committer[1:-1]
+                if committer[0] == "<":
+                    committer = committer[1:-1]
                 committer = self.recode(committer)
             if n == "parent":
                 parents.append(v)