t/helper/test-lazy-name-hash: fix compilation
[gitweb.git] / git-p4.py
index 85e8a149cc257e3d42cc75dd77079a55292e46a5..f427bf6299ed3239ce4e73b674dbb2273dc5e086 100755 (executable)
--- 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