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