Patchwork D3192: addbranchrevs: no longer accept revset as "revs" (API)

login
register
mail settings
Submitter phabricator
Date April 9, 2018, 2:17 p.m.
Message ID <2fbf56391f325957056d4a5210bce3d0@localhost.localdomain>
Download mbox | patch
Permalink /patch/30589/
State Not Applicable
Headers show

Comments

phabricator - April 9, 2018, 2:17 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7c848ab13eff: addbranchrevs: no longer accept revset as &quot;revs&quot; (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




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

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