Ë y]¾ £U†ãó.—Gd„d«ZGd„de«Zy)cóX—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zy)ÚindexapiaClass that manages access to infinitepush index. This class is a context manager and all write operations (like deletebookmarks, addbookmark etc) should use `with` statement: with index: index.deletebookmarks(...) ... có—y)z*Initializes the metadata store connection.N©©Úselfs ú?usr/lib/python3.12/site-packages/hgext/infinitepush/indexapi.pyÚ__init__zindexapi.__init__ó�ócó—y)z(Cleans up the metadata store connection.Nrrs rÚclosezindexapi.closer r có—|S©Nrrs rÚ __enter__zindexapi.__enter__s€Øˆ r có—yrr)rÚexc_typeÚexc_valÚexc_tbs rÚ__exit__zindexapi.__exit__s€Ø r có—t«‚)zcTakes a bundleid and a list of node contexts for each node in that bundle and records that.©ÚNotImplementedError)rÚbundleidÚnodesctxs rÚ addbundlezindexapi.addbundle ó €ô"Ó#Ð#r có—t«‚)zRTakes a bookmark name and hash, and records mapping in the metadata store.r)rÚbookmarkÚnodes rÚ addbookmarkzindexapi.addbookmark%rr có—t«‚)zbTakes a dict with mapping from bookmark to hash and records mapping in the metadata store.r)rÚ bookmarkss rÚaddmanybookmarkszindexapi.addmanybookmarks*rr có—t«‚)z+Accepts list of bookmarks and deletes them.r)rÚpatternss rÚdeletebookmarkszindexapi.deletebookmarks/ó €ä!Ó#Ð#r có—t«‚)zAReturns the bundleid for the bundle that contains the given node.r)rrs rÚ getbundlezindexapi.getbundle3r'r có—t«‚)zBReturns the node for the given bookmark. None if it doesn't exist.r)rrs rÚgetnodezindexapi.getnode7r'r có—t«‚)z&Returns bookmarks that match the queryr)rÚquerys rÚ getbookmarkszindexapi.getbookmarks;r'r có—t«‚)z(Saves optional metadata for a given noder)rrÚ jsonmetadatas rÚsaveoptionaljsonmetadataz!indexapi.saveoptionaljsonmetadata?r'r N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r r rrrr r#r&r)r+r.r1rr rrr sC„ñò9ò7òò ò$ò $ò $ò $ò$ò$ò$ó$r rcó —eZdZy)ÚindexexceptionN)r2r3r4rr rr7r7Ds„Ør r7N)rÚ Exceptionr7rr rÚr9sð÷8$ñ8$ôv �Yõ r