ruạṛ
a �+�bB � @ s0 d dl mZ G dd� de�ZG dd� de�ZdS )� )�absolute_importc @ sp e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� ZdS )�indexapia 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 dS )z*Initializes the metadata store connection.N� ��selfr r �A/usr/lib64/python3.9/site-packages/hgext/infinitepush/indexapi.py�__init__ s zindexapi.__init__c C s dS )z(Cleans up the metadata store connection.Nr r r r r �close s zindexapi.closec C s | S �Nr r r r r � __enter__ s zindexapi.__enter__c C s d S r r )r �exc_typeZexc_valZexc_tbr r r �__exit__ s zindexapi.__exit__c C s t � �dS )zcTakes a bundleid and a list of node contexts for each node in that bundle and records that.N��NotImplementedError)r ZbundleidZnodesctxr r r � addbundle"