##// END OF EJS Templates
revpair: use `first` and `last` instead of direct indexing...
Pierre-Yves David -
r22816:20d99839 default
parent child Browse files
Show More
@@ -497,9 +497,8 b' def revpair(repo, revs):'
497 first = l.max()
497 first = l.max()
498 second = l.min()
498 second = l.min()
499 else:
499 else:
500 l = list(l)
500 first = l.first()
501 first = l[0]
501 second = l.last()
502 second = l[-1]
503
502
504 if first is None:
503 if first is None:
505 raise util.Abort(_('empty revision range'))
504 raise util.Abort(_('empty revision range'))
General Comments 0
You need to be logged in to leave comments. Login now