Patchwork D3137: histedit: simplify desthistedit

login
register
mail settings
Submitter phabricator
Date April 6, 2018, 12:58 p.m.
Message ID <dc657f881cf3d9de57b03bb62dc323fc@localhost.localdomain>
Download mbox | patch
Permalink /patch/30436/
State Not Applicable
Headers show

Comments

phabricator - April 6, 2018, 12:58 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb95992605ef1: histedit: simplify desthistedit (authored by lothiraldan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3137?vs=7738&id=7780

REVISION DETAIL
  https://phab.mercurial-scm.org/D3137

AFFECTED FILES
  mercurial/destutil.py

CHANGE DETAILS




To: lothiraldan, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/destutil.py b/mercurial/destutil.py
--- a/mercurial/destutil.py
+++ b/mercurial/destutil.py
@@ -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