171
173
digest = sha_file(file(abspath, 'rb', buffering=65000))
174
175
digest = sha.new(os.readlink(abspath)).hexdigest()
176
177
raise BzrError("file %r: unknown file stat mode: %o"%(abspath,mode))
180
181
# changed too recently; can't be cached. we can
181
182
# return the result and it could possibly be cached
187
# modification neither changes the inode, the device, the size, nor
190
# again. If we didn't do this, then, for example, a very quick 1