170
173
digest = sha_file(file(abspath, 'rb', buffering=65000))
173
175
digest = sha.new(os.readlink(abspath)).hexdigest()
175
177
raise BzrError("file %r: unknown file stat mode: %o"%(abspath,mode))
179
181
# changed too recently; can't be cached. we can
180
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