b.v.HashEscapedPrefixMapper(HashPrefixMapper) : class documentation

Part of bzrlib.versionedfile View In Hierarchy

Combines the escaped first component of a key with a hash.

This mapper is for use with a transport based backend.

Method _escape Turn a key element into a filesystem safe string.
Method _unescape Escaped names are easily unescaped by urlutils.

Inherited from HashPrefixMapper:

Method _map See KeyMapper.map().
Method _unmap See KeyMapper.unmap().

Inherited from URLEscapeMapper (via HashPrefixMapper):

Method map See KeyMapper.map().
Method unmap See KeyMapper.unmap().
def _escape(self, prefix):
Turn a key element into a filesystem safe string.

This is similar to a plain urllib.quote, except it uses specific safe characters, so that it doesn't have to translate a lot of valid file ids.

def _unescape(self, basename):
Escaped names are easily unescaped by urlutils.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.