git-p4: Fix the sorting of changelists when cloning a Perforce repository.
When performing a git-p4 clone operation on a Perforce repository, where the changelists change in order of magnitude (e.g. 100 to 1000), the set of changes to import from is not sorted properly. This is because the data in the list is strings not integers. The other place where this is done already converts the value to an integer, so it is not affected. Acked-by: Simon Hausmann <simon@lst.de>
Reece H. Dunn committed
Aug 13, 2007 at 19:40 UTC
7da660f4372f4113184f782634c0fafb2cf46cef
1 file changed
+1
-1
contrib/fast-import/git-p4
+1
-1
@@ -1322,7 +1322,7 @@ class P4Sync(Command):
1322
1323
for line in output:
1324
changeNum = line.split(" ")[1]
1325
- changes.append(changeNum)
1325
+ changes.append(int(changeNum))
1326
1327
changes.sort()
1328