bgp vddlmZmZmZddlmZddlmZddlm Z ddl m Z ddl Z dZ Gdd eeeZdS) ) CompoundDB ObjectDBW FileDBBase) LooseObjectDB)PackedDB) ReferenceDB) InvalidDBRootN)GitDBceZdZdZeZeZeZ dZ dZ e j ddZfdZfdZdZd Zd ZxZS) r aA git-style object database, which contains all objects in the 'objects' subdirectory ``IMPORTANT``: The usage of this implementation is highly discouraged as it fails to release file-handles. This can be a problem with long-running processes and/or big repositories. packinfo alternatescJt|dS)z/Initialize ourselves on a git objects directoryN)super__init__)self root_path __class__s ]/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/gitdb/db/git.pyrzGitDB.__init__(s! #####c^|dks|dkrt|_d}|j|jf|j|jf|j|jffD]r\}}||}tj |r9|j ||||jur |jd}s|js!t||t|ds Jd||_dSt#|dS)N_dbs _loose_dbstorez(First database needs store functionality)listr packs_dir PackDBCls loose_dir LooseDBClsalternates_dirReferenceDBClsdb_pathospathexistsappendr rhasattrrr _set_cache_)rattrloose_dbsubpathdbclsr&rs rr*zGitDB._set_cache_,s7 6>>T[00DIH$(NDN#C$(NDO#D$($79L#M#O 1 1||G,,7>>$''1I$$UU4[[111//#'9R= 9 6#DNN$4$4555'GHg,F,F''Hr''F&DNNN GG   % % % % %rc6|j|SN)rr)ristreams rrz GitDB.storeLs~##G,,,rc4|jSr0)rostream)rs rr3z GitDB.ostreamOs~%%'''rc6|j|Sr0)r set_ostream)rr3s rr5zGitDB.set_ostreamRs~))'222r)__name__ __module__ __qualname____doc__rrrr!rr#rr r%r&joinr"rr*rr3r5 __classcell__)rs@rr r sIJ NIIW\\&,77N$$$$$&&&&&@---(((3333333rr ) gitdb.db.baserrrgitdb.db.looser gitdb.db.packr gitdb.db.refr gitdb.excr r%__all__r rrrCs  )(((((""""""$$$$$$###### =3=3=3=3=3J :=3=3=3=3=3r