##// END OF EJS Templates
revpair: simplify revpair by always relying on smartset.first/last...
Martin von Zweigbergk -
r41414:5079242a default
parent child Browse files
Show More
@@ -672,15 +672,6 b' def revpair(repo, revs):'
672 672
673 673 l = revrange(repo, revs)
674 674
675 if not l:
676 first = second = None
677 elif l.isascending():
678 first = l.min()
679 second = l.max()
680 elif l.isdescending():
681 first = l.max()
682 second = l.min()
683 else:
684 675 first = l.first()
685 676 second = l.last()
686 677
General Comments 0
You need to be logged in to leave comments. Login now