mercurial/scmutil.py
changeset 41369 5079242abef9
parent 41288 17941fc53ae9
child 41370 a728ef2f9b15
--- a/mercurial/scmutil.py	Fri Jan 18 11:10:30 2019 -0800
+++ b/mercurial/scmutil.py	Thu Jan 24 12:38:19 2019 -0800
@@ -672,17 +672,8 @@
 
     l = revrange(repo, revs)
 
-    if not l:
-        first = second = None
-    elif l.isascending():
-        first = l.min()
-        second = l.max()
-    elif l.isdescending():
-        first = l.max()
-        second = l.min()
-    else:
-        first = l.first()
-        second = l.last()
+    first = l.first()
+    second = l.last()
 
     if first is None:
         raise error.Abort(_('empty revision range'))