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>
Han-Wen Nienhuys committed
Jul 23, 2007 at 15:51 UTC
a4eba020f96e1b85f856a992782b8bb2bab6a719
1 file changed
+1
-1
contrib/fast-import/git-p4
+1
-1
@@ -1296,7 +1296,7 @@ class P4Sync(Command):
1296
changeNum = line.split(" ")[1]
1297
changes.append(changeNum)
1298
1299
- changes.reverse()
1299
+ changes.sort()
1300
1301
if len(self.maxChanges) > 0:
1302
changes = changes[0:min(int(self.maxChanges), len(changes))]