Submitter | phabricator |
---|---|
Date | April 8, 2018, 4:48 p.m. |
Message ID | <differential-rev-PHID-DREV-zctnpmq5g7rtc7f5qkkc-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/30573/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -66,9 +66,7 @@ hashbranch, branches = branches if not hashbranch and not branches: x = revs or None - if util.safehasattr(revs, 'first'): - y = revs.first() - elif revs: + if revs: y = revs[0] else: y = None