mercurial/localrepo.py
changeset 6732 3e532b97d1e1
parent 6726 e85951aeec6e
child 6736 369ddc9c0339
--- a/mercurial/localrepo.py	Wed Jun 25 10:37:07 2008 +0200
+++ b/mercurial/localrepo.py	Wed Jun 25 10:54:48 2008 +0200
@@ -1205,7 +1205,7 @@
         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 []