rebase: sort collapsed revisions in commit message (issue5643) stable
authorYuya Nishihara <yuya@tcha.org>
Wed, 02 Aug 2017 21:52:22 +0900
branchstable
changeset 33622 5a5f600b06ad
parent 33621 16a175b3681e
child 33623 23f999211940
rebase: sort collapsed revisions in commit message (issue5643) This fixes the test instability.
hgext/rebase.py
--- a/hgext/rebase.py	Wed Aug 02 00:02:11 2017 +0900
+++ b/hgext/rebase.py	Wed Aug 02 21:52:22 2017 +0900
@@ -472,7 +472,7 @@
                 commitmsg = self.collapsemsg
             else:
                 commitmsg = 'Collapsed revision'
-                for rebased in self.state:
+                for rebased in sorted(self.state):
                     if rebased not in self.skipped and\
                        self.state[rebased] > nullmerge:
                         commitmsg += '\n* %s' % repo[rebased].description()