addbranchrevs: fallback for older servers

This commit is contained in:
Sune Foldager 2010-02-07 15:57:16 +01:00
parent 3f138e6345
commit 9fef9be505

View File

@ -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():