localrepo: keep the UTF-8 version of branchcache around
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Fri, 15 Feb 2008 16:06:36 -0200
changeset 6119 b8919d401313
parent 6118 b69a39ab4745
child 6120 f89878df40fe
localrepo: keep the UTF-8 version of branchcache around
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Feb 15 16:06:36 2008 -0200
+++ b/mercurial/localrepo.py	Fri Feb 15 16:06:36 2008 -0200
@@ -94,6 +94,7 @@
         self.tagscache = None
         self._tagstypecache = None
         self.branchcache = None
+        self._ubranchcache = None  # UTF-8 version of branchcache
         self.nodetagscache = None
         self.filterpats = {}
         self._datafilters = {}
@@ -365,6 +366,7 @@
         # charset internally
         for k, v in partial.items():
             self.branchcache[util.tolocal(k)] = v
+        self._ubranchcache = partial
         return self.branchcache
 
     def _readbranchcache(self):
@@ -617,6 +619,7 @@
         self._tagstypecache = None
         self.nodetagscache = None
         self.branchcache = None
+        self._ubranchcache = None
 
     def _lock(self, lockname, wait, releasefn, acquirefn, desc):
         try: