Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 4176: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 Sat Mar 10 17:36:29 2007 -0800 +++ b/mercurial/context.py Tue Mar 13 15:02:33 2007 -0300 @@ -413,9 +413,9 @@ 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"""