changeset 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 d43707e09b02
children f4b6dec99950
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 []