diff mercurial/localrepo.py @ 6726:e85951aeec6e

tighter default argument selection in localrepo.branchheads()
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Tue, 24 Jun 2008 09:36:24 +0200
parents 197d54d82f8d
children 3e532b97d1e1
line wrap: on
line diff
--- 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 []