зеркало из https://github.com/microsoft/git.git
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:
Родитель
68d4229847
Коммит
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))]
|
||||
|
|
Загрузка…
Ссылка в новой задаче