fix default branchheads() argument (69dbb521053b was very broken)

This commit is contained in:
Dirkjan Ochtman 2008-06-25 10:54:48 +02:00
parent a2fa8fc7e2
commit 8f93fcc6fc

View File

@ -1205,7 +1205,7 @@ class localrepository(repo.repository):
return [n for (r, n) in heads]
def branchheads(self, branch=None, start=None):
branch = branch is None and 'default' or self.workingctx().branch()
branch = branch is None and self.workingctx().branch() or branch
branches = self.branchtags()
if branch not in branches:
return []