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 _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel