Mercurial > hg
comparison hgext/convert/git.py @ 35628:ab11af15a149
style: remove multiple statement on a single line
This is similar to the change made in 5326e4ef1dab.
Differential Revision: https://phab.mercurial-scm.org/D1832
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 09 Oct 2017 11:44:02 +0200 |
parents | 671aba341d90 |
children | aefb75730ea3 |
comparison
equal
deleted
inserted
replaced
35627:882998f08c3c | 35628:ab11af15a149 |
---|---|
340 n, v = e.split(" ", 1) | 340 n, v = e.split(" ", 1) |
341 if n == "author": | 341 if n == "author": |
342 p = v.split() | 342 p = v.split() |
343 tm, tz = p[-2:] | 343 tm, tz = p[-2:] |
344 author = " ".join(p[:-2]) | 344 author = " ".join(p[:-2]) |
345 if author[0] == "<": author = author[1:-1] | 345 if author[0] == "<": |
346 author = author[1:-1] | |
346 author = self.recode(author) | 347 author = self.recode(author) |
347 if n == "committer": | 348 if n == "committer": |
348 p = v.split() | 349 p = v.split() |
349 tm, tz = p[-2:] | 350 tm, tz = p[-2:] |
350 committer = " ".join(p[:-2]) | 351 committer = " ".join(p[:-2]) |
351 if committer[0] == "<": committer = committer[1:-1] | 352 if committer[0] == "<": |
353 committer = committer[1:-1] | |
352 committer = self.recode(committer) | 354 committer = self.recode(committer) |
353 if n == "parent": | 355 if n == "parent": |
354 parents.append(v) | 356 parents.append(v) |
355 if n in self.copyextrakeys: | 357 if n in self.copyextrakeys: |
356 extra[n] = v | 358 extra[n] = v |