mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
addbranchrevs: fallback for older servers
This commit is contained in:
parent
3f138e6345
commit
9fef9be505
@ -21,8 +21,11 @@ def _local(path):
|
||||
def addbranchrevs(lrepo, repo, branches, revs):
|
||||
if not branches:
|
||||
return revs or None, revs and revs[0] or None
|
||||
branchmap = repo.branchmap()
|
||||
revs = revs and list(revs) or []
|
||||
if not repo.capable('branchmap'):
|
||||
revs.extend(branches)
|
||||
return revs, revs[0]
|
||||
branchmap = repo.branchmap()
|
||||
for branch in branches:
|
||||
if branch == '.':
|
||||
if not lrepo or not lrepo.local():
|
||||
|
Loading…
Reference in New Issue
Block a user