git-p4: normalize indentation of lines in conditionals
PEP8 recommends that when wrapping the arguments of conditional statements, an extra level of indentation should be added to distinguish arguments from the body of the statement. This guideline is described here: https://www.python.org/dev/peps/pep-0008/#indentation This patch either adds the indentation, or removes unnecessary wrapping. Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
6febb9f843
commit
7a3e83d0bd
@ -1085,8 +1085,7 @@ def createOrUpdateBranchesFromOrigin(localRefPrefix="refs/remotes/p4/", silent=T
|
||||
originHead = line
|
||||
|
||||
original = extractSettingsGitLog(extractLogMessageFromGitCommit(originHead))
|
||||
if ('depot-paths' not in original
|
||||
or 'change' not in original):
|
||||
if 'depot-paths' not in original or 'change' not in original:
|
||||
continue
|
||||
|
||||
update = False
|
||||
@ -3930,8 +3929,7 @@ class P4Sync(Command, P4UserMap):
|
||||
settings = extractSettingsGitLog(logMsg)
|
||||
|
||||
self.readOptions(settings)
|
||||
if ('depot-paths' in settings
|
||||
and 'change' in settings):
|
||||
if 'depot-paths' in settings and 'change' in settings:
|
||||
change = int(settings['change']) + 1
|
||||
p4Change = max(p4Change, change)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user