Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Holdsworth <jholdsworth@nvidia.com>2022-04-01 17:25:01 +0300
committerJunio C Hamano <gitster@pobox.com>2022-04-01 23:15:44 +0300
commit77956b9de5266de6e597509a4d58e2f0bcafd09a (patch)
tree0af69b2bdcf9abe87f3d85f909751d4766135cea /git-p4.py
parentda0134f6534f407f8377ea97eb040ee6e49412e1 (diff)
git-p4: only seperate code blocks by a single empty line
PEP8 recommends that blank lines should be used sparingly to separate sections in the "Blank Lines" section: https://www.python.org/dev/peps/pep-0008/#blank-lines This patch replaces all double blank-line separations with a single blank line. Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-p4.py')
-rwxr-xr-xgit-p4.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/git-p4.py b/git-p4.py
index 2f2450f7d9..c003b6246d 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -3521,7 +3521,6 @@ class P4Sync(Command, P4UserMap):
if source not in self.knownBranches:
lostAndFoundBranches.add(source)
-
for branch in lostAndFoundBranches:
self.knownBranches[branch] = branch
@@ -3745,7 +3744,6 @@ class P4Sync(Command, P4UserMap):
sys.stderr.write("p4 exitcode: %s\n" % info['p4ExitCode'])
sys.exit(1)
-
change = int(info["change"])
if change > newestRevision:
newestRevision = change
@@ -3773,7 +3771,6 @@ class P4Sync(Command, P4UserMap):
print("IO error details: {}".format(err))
print(self.gitError.read())
-
def importRevisions(self, args, branch_arg_given):
changes = []