changeset 37481:7c848ab13eff

addbranchrevs: no longer accept revset as "revs" (API) The only caller was removed in 0b4692b9646d (bundle: avoid repo.lookup() for converting revnum to nodeid, 2018-04-02). Differential Revision: https://phab.mercurial-scm.org/D3192
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 08 Apr 2018 09:30:35 -0700
parents c569e51ee449
children fa9faf58959d
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Sun Apr 08 08:53:43 2018 -0700
+++ b/mercurial/hg.py	Sun Apr 08 09:30:35 2018 -0700
@@ -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