changeset 36271 | 53be14874ee8 |
parent 36185 | acc8e6e52af6 |
child 36299 | 238646784294 |
--- a/hgext/rebase.py Sat Feb 17 21:25:14 2018 -0500 +++ b/hgext/rebase.py Sat Feb 17 21:47:26 2018 -0500 @@ -1650,7 +1650,9 @@ roots = list(repo.set('roots(%ld)', sortedsrc[0])) if not roots: raise error.Abort(_('no matching revisions')) - roots.sort() + def revof(r): + return r.rev() + roots = sorted(roots, key=revof) state = dict.fromkeys(rebaseset, revtodo) emptyrebase = (len(sortedsrc) == 1) for root in roots: