Browse Source

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>
maint
Reece H. Dunn 18 years ago committed by Junio C Hamano
parent
commit
7da660f437
  1. 2
      contrib/fast-import/git-p4

2
contrib/fast-import/git-p4

@ -1322,7 +1322,7 @@ class P4Sync(Command): @@ -1322,7 +1322,7 @@ class P4Sync(Command):

for line in output:
changeNum = line.split(" ")[1]
changes.append(changeNum)
changes.append(int(changeNum))

changes.sort()


Loading…
Cancel
Save