File: //proc/thread-self/root/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyc
�
1�3\c @@ s@ d d l m Z d e f d � � YZ d e f d � � YZ d S( i ( t absolute_importt indexapic B@ sz e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d
� Z d � Z
d � Z RS(
s Class 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 C@ s d S( s* Initializes the metadata store connection.N( ( t self( ( sA /usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt __init__ t c C@ s d S( s( Cleans up the metadata store connection.N( ( R ( ( sA /usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt close R c C@ s | S( N( ( R ( ( sA /usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt __enter__ s c C@ s d S( N( ( R t exc_typet exc_valt exc_tb( ( sA /usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt __exit__ s c C@ s
t � � d S( sc Takes a bundleid and a list of node contexts for each node
in that bundle and records that.N( t NotImplementedError( R t bundleidt nodesctx( ( sA /usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt addbundle! s c C@ s
t � � d S( sR Takes a bookmark name and hash, and records mapping in the metadata
store.N( R ( R t bookmarkt node( ( sA /usr/lib64/python2.7/site-packages/hgext/infinitepush/indexapi.pyt addbookmark&