Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.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 | 7b5723c95a82 |
children | a7af0eeae8a3 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Mar 10 17:36:29 2007 -0800 +++ b/mercurial/localrepo.py Tue Mar 13 15:02:33 2007 -0300 @@ -17,7 +17,7 @@ class localrepository(repo.repository): capabilities = ('lookup', 'changegroupsubset') supported = ('revlogv1', 'store') - branchcache_features = ('unnamed',) + branchcache_features = ('default',) def __del__(self): self.transhandle = None @@ -727,7 +727,7 @@ branchname = "" if use_dirstate: - oldname = c1[5].get("branch", "") # stored in UTF-8 + oldname = c1[5].get("branch") or "default" # stored in UTF-8 if not commit and not remove and not force and p2 == nullid and \ branchname == oldname: self.ui.status(_("nothing changed\n"))