summaryrefslogtreecommitdiffstats
path: root/git-p4.py
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-01-17 15:19:02 -0800
committerJunio C Hamano <gitster@pobox.com>2017-01-17 15:19:02 -0800
commit1d5cb4596db9b4c5c9e8bd25700ecde83dfd18bd (patch)
tree68e55e59fc326cd5686a55701eaa36ec48cb042e /git-p4.py
parentMerge branch 'jk/difftool-in-subdir' into maint (diff)
parentgit-p4: fix multi-path changelist empty commits (diff)
downloadgit-1d5cb4596db9b4c5c9e8bd25700ecde83dfd18bd.tar.xz
git-1d5cb4596db9b4c5c9e8bd25700ecde83dfd18bd.zip
Merge branch 'gv/p4-multi-path-commit-fix' into maint
"git p4" that tracks multile p4 paths imported a single changelist that touches files in these multiple paths as one commit, followed by many empty commits. This has been fixed. * gv/p4-multi-path-commit-fix: git-p4: fix multi-path changelist empty commits
Diffstat (limited to 'git-p4.py')
-rwxr-xr-xgit-p4.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-p4.py b/git-p4.py
index 85e8a149cc2..f427bf6299e 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -823,7 +823,7 @@ def p4ChangesForPaths(depotPaths, changeRange, requestedBlockSize):
die("cannot use --changes-block-size with non-numeric revisions")
block_size = None
- changes = []
+ changes = set()
# Retrieve changes a block at a time, to prevent running
# into a MaxResults/MaxScanRows error from the server.
@@ -842,7 +842,7 @@ def p4ChangesForPaths(depotPaths, changeRange, requestedBlockSize):
# Insert changes in chronological order
for line in reversed(p4_read_pipe_lines(cmd)):
- changes.append(int(line.split(" ")[1]))
+ changes.add(int(line.split(" ")[1]))
if not block_size:
break