Browse Source

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>
maint
Han-Wen Nienhuys 18 years ago committed by Simon Hausmann
parent
commit
a4eba020f9
  1. 2
      contrib/fast-import/git-p4

2
contrib/fast-import/git-p4

@ -1296,7 +1296,7 @@ class P4Sync(Command): @@ -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…
Cancel
Save