1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-21 13:56:11 +02:00

Sort output of "p4 change" in incremental import before further

processing

P4 change outputs the changes sorted for each directory separately. We
want the global ordering on the changes, hence we sort.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Simon Hausmann <simon@lst.de>
This commit is contained in:
Han-Wen Nienhuys 2007-07-23 15:51:49 -07:00 committed by Simon Hausmann
parent 68d4229847
commit a4eba020f9

View File

@ -1296,7 +1296,7 @@ class P4Sync(Command):
changeNum = line.split(" ")[1]
changes.append(changeNum)
changes.reverse()
changes.sort()
if len(self.maxChanges) > 0:
changes = changes[0:min(int(self.maxChanges), len(changes))]