Show More
@@ -360,7 +360,9 b' class revbranchcache(object):' | |||||
360 | try: |
|
360 | try: | |
361 | bndata = repo.vfs.read(_rbcnames) |
|
361 | bndata = repo.vfs.read(_rbcnames) | |
362 | self._rbcsnameslen = len(bndata) # for verification before writing |
|
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 | except (IOError, OSError): |
|
366 | except (IOError, OSError): | |
365 | if readonly: |
|
367 | if readonly: | |
366 | # don't try to use cache - fall back to the slow path |
|
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