403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/hgext/infinitepush/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgext/infinitepush/__pycache__/indexapi.cpython-39.opt-1.pyc
a

�+�bB�@s0ddlmZGdd�de�ZGdd�de�ZdS)�)�absolute_importc@speZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)�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(...)
          ...
    cCsdS)z*Initializes the metadata store connection.N���selfrr�A/usr/lib64/python3.9/site-packages/hgext/infinitepush/indexapi.py�__init__szindexapi.__init__cCsdS)z(Cleans up the metadata store connection.Nrrrrr�closeszindexapi.closecCs|S�Nrrrrr�	__enter__szindexapi.__enter__cCsdSr
r)r�exc_typeZexc_valZexc_tbrrr�__exit__szindexapi.__exit__cCs
t��dS)zcTakes a bundleid and a list of node contexts for each node
        in that bundle and records that.N��NotImplementedError)rZbundleidZnodesctxrrr�	addbundle"szindexapi.addbundlecCs
t��dS)zRTakes a bookmark name and hash, and records mapping in the metadata
        store.Nr)r�bookmark�noderrr�addbookmark'szindexapi.addbookmarkcCs
t��dS)zbTakes a dict with mapping from bookmark to hash and records mapping
        in the metadata store.Nr)rZ	bookmarksrrr�addmanybookmarks,szindexapi.addmanybookmarkscCs
t��dS)z+Accepts list of bookmarks and deletes them.Nr)r�patternsrrr�deletebookmarks1szindexapi.deletebookmarkscCs
t��dS)zAReturns the bundleid for the bundle that contains the given node.Nr)rrrrr�	getbundle5szindexapi.getbundlecCs
t��dS)zBReturns the node for the given bookmark. None if it doesn't exist.Nr)rrrrr�getnode9szindexapi.getnodecCs
t��dS)z&Returns bookmarks that match the queryNr)r�queryrrr�getbookmarks=szindexapi.getbookmarkscCs
t��dS)z(Saves optional metadata for a given nodeNr)rrZjsonmetadatarrr�saveoptionaljsonmetadataAsz!indexapi.saveoptionaljsonmetadataN)�__name__�
__module__�__qualname__�__doc__rr	rr
rrrrrrrrrrrrrs
rc@seZdZdS)�indexexceptionN)rrrrrrrr Fsr N)Z
__future__r�objectr�	Exceptionr rrrr�<module>s;

Youez - 2016 - github.com/yon3zu
LinuXploit