mercurial/destutil.py
changeset 37390 b95992605ef1
parent 37375 a973bb92ab71
child 37452 2b38c80557a4
--- a/mercurial/destutil.py	Thu Apr 05 17:58:58 2018 +0200
+++ b/mercurial/destutil.py	Thu Apr 05 18:02:42 2018 +0200
@@ -350,10 +350,8 @@
         revs = scmutil.revrange(repo, [default])
 
     if revs:
-        # The revset supplied by the user may not be in ascending order nor
-        # take the first revision. So do this manually.
-        revs.sort()
-        return revs.first()
+        # Take the first revision of the revset as the root
+        return revs.min()
 
     return None