114
114
.replace('\r', '\\u000d')
118
118
from atomicfile import AtomicFile
120
120
cachefn = os.path.join(basedir, '.bzr', 'stat-cache')
121
121
outf = AtomicFile(cachefn, 'wb')
122
122
outf.write(CACHE_HEADER + '\n')
126
126
raise ValueError("invalid statcache entry tuple %r" % entry)
130
127
outf.write(safe_quote(entry[0])) # file id
132
129
outf.write(entry[1]) # hex sha1