comparison mercurial/hg.py @ 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 ce566e0f73d0
comparison
equal deleted inserted replaced
37480:c569e51ee449 37481:7c848ab13eff
64 def addbranchrevs(lrepo, other, branches, revs): 64 def addbranchrevs(lrepo, other, branches, revs):
65 peer = other.peer() # a courtesy to callers using a localrepo for other 65 peer = other.peer() # a courtesy to callers using a localrepo for other
66 hashbranch, branches = branches 66 hashbranch, branches = branches
67 if not hashbranch and not branches: 67 if not hashbranch and not branches:
68 x = revs or None 68 x = revs or None
69 if util.safehasattr(revs, 'first'): 69 if revs:
70 y = revs.first()
71 elif revs:
72 y = revs[0] 70 y = revs[0]
73 else: 71 else:
74 y = None 72 y = None
75 return x, y 73 return x, y
76 if revs: 74 if revs: