# HG changeset patch # User Dirkjan Ochtman # Date 1214292984 -7200 # Node ID e85951aeec6e280613d501291082ced9108323d4 # Parent d43707e09b02e441b4b32671db10a25a6b51ab84 tighter default argument selection in localrepo.branchheads() diff -r d43707e09b02 -r e85951aeec6e mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Jun 24 09:34:38 2008 +0200 +++ b/mercurial/localrepo.py Tue Jun 24 09:36:24 2008 +0200 @@ -1205,7 +1205,7 @@ return [n for (r, n) in heads] def branchheads(self, branch=None, start=None): - branch = branch or self.workingctx().branch() + branch = branch is None and 'default' or self.workingctx().branch() branches = self.branchtags() if branch not in branches: return []