§ |<ˆjk# ã óä — d Z ddlmZmZmZ ddlmZ ddlmZm Z ddl mZ ddlm Z dZ G d„ d ¦ « Z G d „ d¦ « Z G d„ d ¦ « Z G d„ d¦ « Zd„ Z G d„ deee¦ « ZdS )z8Contains implementations of database retrieveing objectsé )ÚjoinÚ LazyMixinÚ hex_to_bin)Ú force_text)Ú BadObjectÚAmbiguousObjectName)Úchain)Úreduce)Ú ObjectDBRÚ ObjectDBWÚ FileDBBaseÚ CompoundDBÚ CachingDBc ó6 — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z dS ) r zkDefines an interface for object database lookup. Objects are identified either by their 20 byte bin shac ó — | j S ©N)Úhas_obj©ÚselfÚshas ú_/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/gitdb/db/base.pyÚ__contains__zObjectDBR.__contains__ s € ØŒ|Ðó c ó — t d¦ « ‚)zê Whether the object identified by the given 20 bytes binary sha is contained in the database :return: True if the object identified by the given 20 bytes binary sha is contained in the databaseúTo be implemented in subclass©ÚNotImplementedErrorr s r Ú has_objectzObjectDBR.has_object" s € õ "Ð"AÑBÔBÐBr c ó — t d¦ « ‚)zW :return: OInfo instance :param sha: bytes binary sha :raise BadObject:r r r s r ÚinfozObjectDBR.info+ ó € õ "Ð"AÑBÔBÐBr c ó — t d¦ « ‚)z[:return: OStream instance :param sha: 20 bytes binary sha :raise BadObject:r r r s r ÚstreamzObjectDBR.stream1 r! r c ó — t ¦ « ‚)z+:return: amount of objects in this databaser ©r s r ÚsizezObjectDBR.size7 ó € å!Ñ#Ô#Ð#r c ó — t ¦ « ‚)zGReturn iterator yielding 20 byte shas for all objects in this data baser r% s r Úsha_iterzObjectDBR.sha_iter; r' r N) Ú__name__Ú __module__Ú__qualname__Ú__doc__r r r r# r&