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

login
register
mail settings
Submitter phabricator
Date Jan. 10, 2018, 8:22 a.m.
Message ID <differential-rev-PHID-DREV-6fnwscdkg75nhxcgxi36-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26631/
State Superseded
Headers show

Comments

phabricator - Jan. 10, 2018, 8:22 a.m.
lothiraldan created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This is similar to the change made in https://phab.mercurial-scm.org/rHG5326e4ef1dab0bb33f5262aa9e68491d115525fb.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/convert/git.py

CHANGE DETAILS




To: lothiraldan, #hg-reviewers
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)