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:
parent
68d4229847
commit
a4eba020f9
@ -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))]
|
||||
|
Loading…
Reference in New Issue
Block a user