diff mercurial/context.py @ 4204:f9bbcebcacea

"default" is the default branch name
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 13 Mar 2007 15:02:33 -0300
parents 46abbed02b2d
children 0b48e3985765
line wrap: on
line diff
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -413,9 +413,9 @@ class workingctx(changectx):
     def clean(self): return self._status[5]
     def branch(self):
         try:
-            return self._repo.opener("branch").read().strip()
+            return self._repo.opener("branch").read().strip() or "default"
         except IOError:
-            return ""
+            return "default"
 
     def parents(self):
         """return contexts for each parent changeset"""