D3192: addbranchrevs: no longer accept revset as "revs" (API)
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Apr 9 10:17:19 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7c848ab13eff: addbranchrevs: no longer accept revset as "revs" (API) (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3192?vs=7883&id=7892
REVISION DETAIL
https://phab.mercurial-scm.org/D3192
AFFECTED FILES
mercurial/hg.py
CHANGE DETAILS
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
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list