b.d.SHA1Provider(object) : class documentation

Part of bzrlib.dirstate View In Hierarchy

Known subclasses: bzrlib.dirstate.DefaultSHA1Provider, bzrlib.tests.test__dirstate_helpers.UppercaseSHA1Provider

An interface for getting sha1s of a file.
Method sha1 Return the sha1 of a file given its absolute path.
Method stat_and_sha1 Return the stat and sha1 of a file given its absolute path.
def sha1(self, abspath):
Return the sha1 of a file given its absolute path.
ParametersabspathMay be a filesystem encoded absolute path or a unicode path.
def stat_and_sha1(self, abspath):
Return the stat and sha1 of a file given its absolute path.

Note: the stat should be the stat of the physical file while the sha may be the sha of its canonical content.

ParametersabspathMay be a filesystem encoded absolute path or a unicode path.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.