mercurial/localrepo.py
changeset 6726 e85951aeec6e
parent 6722 197d54d82f8d
child 6732 3e532b97d1e1
--- 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 []