HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/thread-self/root/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyc
�
1�3\c@@s@ddlmZdefd��YZdefd��YZdS(i(tabsolute_importtindexapicB@szeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(
sClass 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(...)
          ...
    cC@sdS(s*Initializes the metadata store connection.N((tself((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt__init__tcC@sdS(s(Cleans up the metadata store connection.N((R((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pytcloseRcC@s|S(N((R((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt	__enter__scC@sdS(N((Rtexc_typetexc_valtexc_tb((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt__exit__scC@s
t��dS(scTakes a bundleid and a list of node contexts for each node
        in that bundle and records that.N(tNotImplementedError(Rtbundleidtnodesctx((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt	addbundle!scC@s
t��dS(sRTakes a bookmark name and hash, and records mapping in the metadata
        store.N(R(Rtbookmarktnode((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pytaddbookmark&scC@s
t��dS(sbTakes a dict with mapping from bookmark to hash and records mapping
        in the metadata store.N(R(Rt	bookmarks((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pytaddmanybookmarks+scC@s
t��dS(s4Accepts list of bookmarks and deletes them.
        N(R(Rtpatterns((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pytdeletebookmarks0scC@s
t��dS(sAReturns the bundleid for the bundle that contains the given node.N(R(RR((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt	getbundle5scC@s
t��dS(sBReturns the node for the given bookmark. None if it doesn't exist.N(R(RR((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pytgetnode9scC@s
t��dS(s&Returns bookmarks that match the queryN(R(Rtquery((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pytgetbookmarks=scC@s
t��dS(s(Saves optional metadata for a given nodeN(R(RRtjsonmetadata((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pytsaveoptionaljsonmetadataAs(t__name__t
__module__t__doc__RRRR
RRRRRRRR(((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyR
s												tindexexceptioncB@seZRS((RR(((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyREsN(t
__future__RtobjectRt	ExceptionR(((sA/usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt<module>s;