Submitter | phabricator |
---|---|
Date | April 5, 2018, 4:23 p.m. |
Message ID | <differential-rev-PHID-DREV-ovmj35hknas7xv3jpjqs-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/30389/ |
State | Superseded |
Headers | show |
Comments
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