##// END OF EJS Templates
rbc: empty (and invalid) rbc-names file should give an empty name list...
Mads Kiilerich -
r31371:7dd2f51f default
parent child Browse files
Show More
@@ -360,7 +360,9 b' class revbranchcache(object):'
360 360 try:
361 361 bndata = repo.vfs.read(_rbcnames)
362 362 self._rbcsnameslen = len(bndata) # for verification before writing
363 self._names = [encoding.tolocal(bn) for bn in bndata.split('\0')]
363 if bndata:
364 self._names = [encoding.tolocal(bn)
365 for bn in bndata.split('\0')]
364 366 except (IOError, OSError):
365 367 if readonly:
366 368 # don't try to use cache - fall back to the slow path
General Comments 0
You need to be logged in to leave comments. Login now