##// END OF EJS Templates
outgoing: move sorting in the display function...
marmoute -
r52977:75123bc6 stable
parent child Browse files
Show More
@@ -1454,6 +1454,9 def _outgoing_recurse(ui, repo, dests, o
1454 1454
1455 1455
1456 1456 def display_outgoing_revs(ui, repo, o, opts):
1457 # make sure this is ordered by revision number
1458 cl = repo.changelog
1459 o.sort(key=cl.rev)
1457 1460 if opts.get(b'graph'):
1458 1461 revdag = logcmdutil.graphrevs(repo, o, opts)
1459 1462 ui.pager(b'outgoing')
@@ -1524,11 +1527,7 def _outgoing(ui, repo, dests, opts, sub
1524 1527 except: # re-raises
1525 1528 other.close()
1526 1529 raise
1527 # make sure this is ordered by revision number
1528 outgoing_revs = list(out)
1529 cl = repo.changelog
1530 outgoing_revs.sort(key=cl.rev)
1531 return outgoing_revs, others
1530 return list(out), others
1532 1531
1533 1532
1534 1533 def verify(repo, level=None):
General Comments 0
You need to be logged in to leave comments. Login now