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/mercurial/interfaces/__pycache__/ |
Upload File : |
a �+�b� � @ s� d dl mZ ddlmZ ddlmZ ddlmZ dZdZ d Z d ZdZdZ d ZdZdZdZeeB eB eB ZdZdZdZdZdZdZdZdZdZdZdZdZdZehZ eeeeeeeehZ!e!�"� Z#e#�$e� G dd� dej%�Z&G d d!� d!ej%�Z'G d"d#� d#ej%�Z(G d$d%� d%ej%�Z)G d&d'� d'ej%�Z*G d(d)� d)ej%�Z+G d*d+� d+e&e'e+�Z,G d,d-� d-e&e'e+�Z-e�.e,�G d.d/� d/e/��Z0G d0d1� d1ej%�Z1G d2d3� d3ej%�Z2G d4d5� d5ej%�Z3G d6d7� d7ej%�Z4G d8d9� d9ej%�Z5G d:d;� d;ej%�Z6G d<d=� d=e4e5e6�Z7G d>d?� d?ej%�Z8G d@dA� dAej%�Z9G dBdC� dCej%�Z:G dDdE� dEe:�Z;G dFdG� dGe:�Z<G dHdI� dIej%�Z=G dJdK� dKej%�Z>G dLdM� dMej%�Z?G dNdO� dOej%�Z@G dPdQ� dQe@e?�ZAG dRdS� dSej%�ZBdTS )U� )�absolute_import� )�_)�error� )�utils revlogfilestorages sharedstores lfss streamclones side-datas shallowfilestoragei � i @ i i s defaults previouss fulltexts p1s branchmap-alls branchmap-serveds changelog-caches full-manifests file-node-tagss manifestlog-caches rev-branch-caches tags-defaults tags-servedc @ sB e Zd ZdZe�d�Zdd� Zdd� Zdd� Z d d � Z dd� Zd S )�ipeerconnectiona* Represents a "connection" to a repository. This is the base interface for representing a connection to a repository. It holds basic properties and methods applicable to all peer types. This is not a complete interface definition and should not be used outside of this module. zui.ui instancec C s dS )a� Returns a URL string representing this peer. Currently, implementations expose the raw URL used to construct the instance. It may contain credentials as part of the URL. The expectations of the value aren't well-defined and this could lead to data leakage. TODO audit/clean consumers and more clearly define the contents of this value. N� r r r �E/usr/lib64/python3.9/site-packages/mercurial/interfaces/repository.py�urll s zipeerconnection.urlc C s dS )z�Returns a local repository instance. If the peer represents a local repository, returns an object that can be used to interface with it. Otherwise returns ``None``. Nr r r r r �localx s zipeerconnection.localc C s dS )zlReturns an object conforming to this interface. Most implementations will ``return self``. Nr r r r r �peer s zipeerconnection.peerc C s dS )z;Returns a boolean indicating if this peer can be pushed to.Nr r r r r �canpush� s zipeerconnection.canpushc C s dS )z�Close the connection to this peer. This is called when the peer will no longer be used. Resources associated with the peer should be cleaned up. Nr r r r r �close� s zipeerconnection.closeN)�__name__� __module__�__qualname__�__doc__� interfaceutil� Attribute�uir r r r r r r r r r ` s r c @ s e Zd ZdZdd� Zdd� ZdS )�ipeercapabilitiesz+Peer sub-interface related to capabilities.c C s dS )a5 Determine support for a named capability. Returns ``False`` if capability not supported. Returns ``True`` if boolean capability is supported. Returns a string if capability support is non-boolean. Capability strings may or may not map to wire protocol capabilities. Nr )�namer r r �capable� s zipeercapabilities.capablec C s dS )zsRequire a capability to be present. Raises a ``CapabilityError`` if the capability isn't present. Nr )r �purposer r r � requirecap� s zipeercapabilities.requirecapN)r r r r r r r r r r r � s r c @ sr e Zd ZdZdd� Zdd� Zdd� Zdd d �Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� ZdS )� ipeercommandsz�Client-side interface for communicating over the wire protocol. This interface is used as a gateway to the Mercurial wire protocol. methods commonly call wire protocol commands of the same name. c C s dS )z�Obtain heads in named branches. Returns a dict mapping branch name to an iterable of nodes that are heads on that branch. Nr r r r r � branchmap� s zipeercommands.branchmapc C s dS )zXObtain capabilities of the peer. Returns a set of string capabilities. Nr r r r r �capabilities� s zipeercommands.capabilitiesc C s dS )zjObtains the clone bundles manifest for the repo. Returns the manifest as unparsed bytes. Nr r r r r �clonebundles� s zipeercommands.clonebundlesNc C s dS )z?Used to facilitate debugging of arguments passed over the wire.Nr �ZoneZtwoZthreeZfourZfiver r r � debugwireargs� s zipeercommands.debugwireargsc K s dS )z�Obtain remote repository data as a bundle. This command is how the bulk of repository data is transferred from the peer to the local repository Returns a generator of bundle data. Nr )�source�kwargsr r r � getbundle� s zipeercommands.getbundlec C s dS )zfDetermine all known head revisions in the peer. Returns an iterable of binary nodes. Nr r r r r �heads� s zipeercommands.headsc C s dS )z�Determine whether multiple nodes are known. Accepts an iterable of nodes whose presence to check for. Returns an iterable of booleans indicating of the corresponding node at that index is known to the peer. Nr ��nodesr r r �known� s zipeercommands.knownc C s dS )z[Obtain all keys in a pushkey namespace. Returns an iterable of key names. Nr �� namespacer r r �listkeys� s zipeercommands.listkeysc C s dS )zqResolve a value to a known revision. Returns a binary node of the resolved revision on success. Nr ��keyr r r �lookup� s zipeercommands.lookupc C s dS )a Set a value using the ``pushkey`` protocol. Arguments correspond to the pushkey namespace and key to operate on and the old and new values for that key. Returns a string with the peer result. The value inside varies by the namespace. Nr �r* r- �old�newr r r �pushkey� s zipeercommands.pushkeyc C s dS )zfObtain streaming clone data. Successful result should be a generator of data chunks. Nr r r r r � stream_out� s zipeercommands.stream_outc C s dS )z�Transfer repository data to the peer. This is how the bulk of data during a push is transferred. Returns the integer number of heads added to the peer. Nr )Zbundler% r r r r �unbundle� s zipeercommands.unbundle)NNN)r r r r r r r r! r$ r% r( r+ r. r2 r3 r4 r r r r r � s r c @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd S )�ipeerlegacycommandsa Interface for implementing support for legacy wire protocol commands. Wire protocol commands transition to legacy status when they are no longer used by modern clients. To facilitate identifying which commands are legacy, the interfaces are split. c C s dS )z�Obtain nodes between pairs of nodes. ``pairs`` is an iterable of node pairs. Returns an iterable of iterables of nodes corresponding to each requested pair. Nr ��pairsr r r �between s zipeerlegacycommands.betweenc C s dS )a Obtain ancestor changesets of specific nodes back to a branch point. For each requested node, the peer finds the first ancestor node that is a DAG root or is a merge. Returns an iterable of iterables with the resolved values for each node. Nr r&