mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
fix default branchheads() argument (69dbb521053b was very broken)
This commit is contained in:
parent
a2fa8fc7e2
commit
8f93fcc6fc
@ -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 []
|
||||
|
Loading…
Reference in New Issue
Block a user