Skip to content

Commit

Permalink
Sort output of "p4 change" in incremental import before further
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Han-Wen Nienhuys authored and Simon Hausmann committed Aug 2, 2007
1 parent 68d4229 commit a4eba02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down

0 comments on commit a4eba02

Please sign in to comment.