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 :  /usr/lib64/python3.9/site-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.9/site-packages/mercurial/__pycache__/error.cpython-39.opt-1.pyc
a

�+�b�G�@s�dZddlmZddlZddlmZejrNddlmZm	Z	m
Z
mZmZm
Z
mZdd�ZGd	d
�d
e�ZGdd�dee�ZGd
d�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�dee�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd �d e�ZGd!d"�d"e�Z Gd#d$�d$e�Z!Gd%d&�d&e�Z"Gd'd(�d(e�Z#Gd)d*�d*e#�Z$Gd+d,�d,e�Z%Gd-d.�d.e�Z&Gd/d0�d0e�Z'Gd1d2�d2e�Z(Gd3d4�d4e�Z)Gd5d6�d6e�Z*Gd7d8�d8e�Z+Gd9d:�d:e�Z,Gd;d<�d<e�Z-Gd=d>�d>e-�Z.Gd?d@�d@e-�Z/GdAdB�dBe�Z0GdCdD�dDe�Z1GdEdF�dFe1�Z2GdGdH�dHe�Z3GdIdJ�dJe�Z4GdKdL�dLe4�Z5GdMdN�dNe4�Z6dOdP�Z7dQdR�Z8GdSdT�dTe3�Z9GdUdV�dVee�Z:GdWdX�dXe:�Z;GdYdZ�dZe;�Z<Gd[d\�d\e:�Z=Gd]d^�d^e:�Z>Gd_d`�d`e?�Z@Gdadb�dbe�ZAGdcdd�dde�ZBGdedf�dfe?�ZCGdgdh�dheC�ZDGdidj�djeC�ZEGdkdl�dleF�ZGGdmdn�dne�ZHGdodp�dpeI�ZJGdqdr�dre�ZKGdsdt�dteF�ZLGdudv�dveeF�ZMGdwdx�dxe�ZNGdydz�dzeO�ZPGd{d|�d|eP�ZQGd}d~�d~eF�ZRGdd��d�e�ZSGd�d��d�e�ZTGd�d��d�e�ZUGd�d��d�e�ZVGd�d��d�e�ZWGd�d��d�e�ZXGd�d��d�e�ZYGd�d��d�e�ZZGd�d��d�e�Z[dS)�zdMercurial exceptions.

This allows us to catch exceptions at higher levels without forcing
imports.
�)�absolute_importN�)�pycompat)�Any�AnyStr�Iterable�List�Optional�Sequence�UnioncCsB|js
dSt|j�dkr(t�|jd�Sdd�dd�|jD��S)z?Byte-stringify exception in the same way as BaseException_str()�rrs(%s)�, css|]}dt�|�VqdS)s'%s'N)r�bytestr)�.0�a�r�5/usr/lib64/python3.9/site-packages/mercurial/error.py�	<genexpr>(rz_tobytes.<locals>.<genexpr>)�args�lenrr�join)�excrrr�_tobytes!s
rcs eZdZdZ�fdd�Z�ZS)�Hintz�Mix-in to provide a hint of an error

    This should come first in the inheritance list to consume a hint and
    pass remaining arguments to the exception class.
    cs(|�dd�|_tt|�j|i|��dS)N�hint)�popr�superr�__init__)�selfr�kw��	__class__rrr2sz
Hint.__init__��__name__�
__module__�__qualname__�__doc__r�
__classcell__rrr rr+src@s@eZdZdZdZdZddd�Zdd�Zej	r4dd�Z
d	d
�ZdS)�Errorz Base class for Mercurial errors.NcCs||_||_t�||�dS�N)�messager�	Exceptionr)rr*rrrrr=szError.__init__cCs|jSr))r*�rrrr�	__bytes__EszError.__bytes__cCst�|���Sr))r�sysstrr-r,rrr�__str__Jsz
Error.__str__cCs6ddlm}|d�|j}|jr2||d�|j7}|S)Nr��_s
abort: %s
�(%s)
��i18nr1r*r�rr1r*rrr�formatQs
zError.format)N)r#r$r%r&�coarse_exit_code�detailed_exit_coderr-rZispy3r/r6rrrrr(7s
r(c@seZdZdZdS)�Abortz5Raised if a command needs to print an error and exit.N�r#r$r%r&rrrrr9[sr9c@seZdZdZdZdS)�StorageErrorzmRaised when an error occurs in a storage layer.

    Usually subclassed by a storage-specific exception.
    �2N�r#r$r%r&r8rrrrr;_sr;c@seZdZdS)�RevlogErrorN�r#r$r%rrrrr>hsr>c@seZdZdd�ZdS)�SidedataHashErrorcCsd|_||_||_||_dSr))rZsidedatakeyZexpecteddigestZactualdigest)r�keyZexpectedZgotrrrrmszSidedataHashError.__init__N�r#r$r%rrrrrr@lsr@c@seZdZeZdS)�FilteredIndexErrorN�r#r$r%rr-rrrrrCusrCc@s$eZdZdd�Zdd�Zdd�ZdS)�LookupErrorcCs\||_||_||_t|t�r<t|�dkr<ddlm}||�}t�	|d|t
�|�|f�dS)N�r)�hexs	%s@%s: %s)�name�indexZ
lookupmessage�
isinstance�bytesr�noderGr>rrr)rrHrIr*rGrrrrzs�zLookupError.__init__cCs
t�|�Sr))r>r-r,rrrr-�szLookupError.__bytes__cCs
t�|�Sr))r>r/r,rrrr/�szLookupError.__str__N)r#r$r%rr-r/rrrrrEysrEc@seZdZdS)�AmbiguousPrefixLookupErrorNr?rrrrrM�srMc@seZdZdS)�FilteredLookupErrorNr?rrrrrN�srNc@seZdZdS)�ManifestLookupErrorNr?rrrrrO�srOcs$eZdZdZ�fdd�ZeZ�ZS)�CommandErrorz7Exception raised on errors in parsing the command line.cs||_||_tt|���dSr))�commandr*rrPr)rrQr*r rrr�szCommandError.__init__�r#r$r%r&rrr-r'rrr rrP�srPcs&eZdZdZd�fdd�	ZeZ�ZS)�UnknownCommandz8Exception raised if command is not in the command table.Ncs||_||_tt|���dSr))rQ�all_commandsrrSr)rrQrTr rrr�szUnknownCommand.__init__)NrRrrr rrS�srScs$eZdZdZ�fdd�ZeZ�ZS)�AmbiguousCommandzCException raised if command shortcut matches more than one command.cs||_||_tt|���dSr))�prefix�matchesrrUr)rrVrWr rrr�szAmbiguousCommand.__init__rRrrr rrU�srUcs$eZdZdZ�fdd�ZeZ�ZS)�WorkerErrorz,Exception raised when a worker process dies.cs||_tt|��|�dSr))�status_coderrXr)rrYr rrr�szWorkerError.__init__rRrrr rrX�srXc@s eZdZdZdZdZdd�ZdS)�InterventionRequiredz<Exception raised when a command requires human intervention.r��cCs6ddlm}|d�|j}|jr2||d�|j7}|S)Nrr0s%s
r2r3r5rrrr6�s
zInterventionRequired.formatN)r#r$r%r&r7r8r6rrrrrZ�srZc@seZdZdZdd�ZdS)�ConflictResolutionRequiredzOException raised when a continuable command required merge conflict resolution.cCs*ddlm}||_t�||d�|�dS)Nrr0s@unresolved conflicts (see 'hg resolve', then 'hg %s --continue'))r4r1�opnamerZr)rr]r1rrrr�s���z#ConflictResolutionRequired.__init__N�r#r$r%r&rrrrrr\�sr\c@seZdZdZdZdS)�
InputErrorz{Indicates that the user made an error in their input.

    Examples: Invalid command, invalid flags, invalid revision.
    �
Nr=rrrrr_�sr_c@seZdZdZdZdS)�
StateErrorz�Indicates that the operation might work if retried in a different state.

    Examples: Unresolved merge conflicts, unfinished operations.
    rFNr=rrrrra�srac@seZdZdZdZdS)�
CanceledErrorzzIndicates that the user canceled the operation.

    Examples: Close commit editor with error status, quit chistedit.
    �Nr=rrrrrbsrbc@seZdZdZdZdS)�
SecurityErrorz�Indicates that some aspect of security failed.

    Examples: Bad server credentials, expired local credentials for network
    filesystem, mismatched GPG signature, DoS protection.
    �Nr=rrrrrd	srdc@seZdZdZdS)�
HookLoadErrorzgraised when loading a hook fails, aborting an operation

    Exists to allow more specialized catching.Nr:rrrrrfsrfc@seZdZdZdZdS)�	HookAbortzjraised when a validation hook fails, aborting an operation

    Exists to allow more specialized catching.�(Nr=rrrrrgsrgcs.eZdZdZdZd�fdd�	Zdd�Z�ZS)	�ConfigErrorz*Exception raised when parsing config files�Ncstt|�j||d�||_dS�N�r)rrir�location�rr*rmrr rrr&szConfigError.__init__cCs\ddlm}|jdur2|d�t�|j�|jf}n|d�|j}|jrX||d�|j7}|S)Nrr0sconfig error at %s: %s
sconfig error: %s
r2�r4r1rmrrr*rr5rrrr6+s

�zConfigError.format)NN�r#r$r%r&r8rr6r'rrr rri!sric@seZdZdZdS)�UpdateAbortz6Raised when an update is aborted for destination issueNr:rrrrrq;srqc@seZdZdZdS)�MergeDestAbortz7Raised when an update is aborted for destination issuesNr:rrrrrr?srrc@seZdZdZdS)�NoMergeDestAbortzBRaised when an update is aborted because there is nothing to mergeNr:rrrrrsCsrsc@seZdZdZdS)�ManyMergeDestAbortzARaised when an update is aborted because destination is ambiguousNr:rrrrrtGsrtc@seZdZdZdd�ZdS)�ResponseExpectedz+Raised when an EOF is received for a promptcCs ddlm}t�||d��dS)Nrr0sresponse expected)r4r1r9r)rr1rrrrNszResponseExpected.__init__Nr^rrrrruKsruc@seZdZdZdZdS)�RemoteErrorz:Exception raised when interacting with a remote repo fails�dNr=rrrrrvTsrvcs"eZdZdZd�fdd�	Z�ZS)�OutOfBandErrorz3Exception raised when a remote repo reports failureNcsDddlm}|r$|d�|�d�}n|d�}tt|�j||d�dS)Nrr0sremote error:
%s�
sremote errorrl)r4r1�rstriprrxr)rr*rr1r rrr]s
zOutOfBandError.__init__)NNr"rrr rrxZsrxcs.eZdZdZdZd�fdd�	Zdd�Z�ZS)	�
ParseErrorz@Raised when parsing config files and {rev,file}sets (msg[, pos])r`Ncstt|�j||d�||_dSrk)rr{rrmrnr rrrnszParseError.__init__cCs\ddlm}|jdur2|d�t�|j�|jf}n|d�|j}|jrX||d�|j7}|S)Nrr0shg: parse error at %s: %s
shg: parse error: %s
r2ror5rrrr6ss

�zParseError.format)NNrprrr rr{isr{c@seZdZeZdS)�
PatchErrorNrDrrrrr|�sr|c@seZdZeZdS)�PatchParseErrorNrDrrrrr}�sr}c@seZdZeZdS)�PatchApplicationErrorNrDrrrrr~�sr~cs�fdd���fdd�|D�S)Ncst�d�|���Sr))�difflibZSequenceMatcherZratio)�x)�valuerr�<lambda>�rzgetsimilar.<locals>.<lambda>csg|]}�|�dkr|�qS)g333333�?r)r�s)�simrr�
<listcomp>�rzgetsimilar.<locals>.<listcomp>r)�symbolsr�r)r�r�r�
getsimilar�sr�cCsNddlm}t|�dkr(|d�|dS|rFd�t|��}|d�|SdSdS)Nrr0sdid you mean %s?rr
sdid you mean one of %s?)r4r1rr�sorted)�similarr1�ssrrr�similarity_hint�sr�c@seZdZdZdd�ZdS)�UnknownIdentifierzFException raised when a {rev,file}set references an unknown identifiercCs:ddlm}t||�}t|�}tj||d�||d�dS)Nrr0sunknown identifier: %srl)r4r1r�r�r{r)r�functionr�r1r�rrrrr�s
�zUnknownIdentifier.__init__Nr^rrrrr��sr�c@seZdZeZdS)�	RepoErrorNrDrrrrr��sr�c@seZdZdS)�RepoLookupErrorNr?rrrrr��sr�c@seZdZdS)�FilteredRepoLookupErrorNr?rrrrr��sr�c@seZdZdS)�CapabilityErrorNr?rrrrr��sr�c@seZdZdZdS)�RequirementErrorz6Exception raised if .hg/requires has an unknown entry.Nr:rrrrr��sr�c@seZdZdZdd�ZdS)�
StdioErrorz'Raised if I/O to stdout or stderr failscCst�||j|j�dSr))�IOErrorr�errno�strerror)r�errrrrr�szStdioError.__init__Nr^rrrrr��sr�c@seZdZdd�ZdS)�UnsupportedMergeRecordscCsBddlm}t|�|_d�|j�}tj||d�||d�d�dS)Nrr0� s#unsupported merge state records: %ssIsee https://mercurial-scm.org/wiki/MergeStateRecords for more informationrl)r4r1r��recordtypesrr9r)rr�r1r�rrrr�s

��z UnsupportedMergeRecords.__init__NrBrrrrr��sr�cs"eZdZdZd�fdd�	Z�ZS)�UnknownVersionzHgeneric exception for aborting from an encounter with an unknown versionNcs||_tt|�j||d�dSrk)�versionrr�r)r�msgrr�r rrr�szUnknownVersion.__init__)NNr"rrr rr��sr�c@seZdZdd�ZdS)�	LockErrorcCst�||||�||_dSr))r�r�desc)rr�r��filenamer�rrrr�szLockError.__init__NrBrrrrr��sr�c@seZdZdd�ZdS)�LockHeldcCst�||d||�||_dS)Ns	Lock held)r�r�locker)rr�r�r�r�rrrr�szLockHeld.__init__NrBrrrrr��sr�c@seZdZdS)�LockUnavailableNr?rrrrr��sr�c@seZdZeZdS)� LockInheritanceContractViolationNrDrrrrr�sr�c@seZdZdZeZdS)�
ResponseErrorz6Raised to print an error with part of output and exit.N�r#r$r%r&rr-rrrrr�sr�c@seZdZdZdS)�SignalInterruptz'Exception raised on SIGTERM and SIGHUP.Nr:rrrrr�sr�c@seZdZeZdS)�SignatureErrorNrDrrrrr�sr�c@seZdZdZeZdS)�	PushRacedz?An exception raised during unbundling that indicate a push raceNr�rrrrr�sr�cs$eZdZdZ�fdd�ZeZ�ZS)�ProgrammingErrorzBRaised if a mercurial (core or extension) developer made a mistakecs,t�|�}tt|�j|g|�Ri|��dSr))rr.rr�r)rr�r�kwargsr rrrs
zProgrammingError.__init__rRrrr rr�sr�c@seZdZdZeZdS)�WdirUnsupportedz;An exception which is raised when 'wdir()' is not supportedNr�rrrrr�'sr�c@seZdZdZeZdS)�BundleValueErrorz-error raised when bundle2 cannot be processedNr�rrrrr�.sr�c@seZdZddd�ZdS)�BundleUnknownFeatureErrorNrc	Cs�||_||_||_|jdur"d}n|}|j}|jr�|jr�g}t|j�D]>\}}|j|}|durl|�|�qF|�d|t�|�f�qF|r�d|d�|�f}t�	||�dS)NsStream Parameters%s=%rs%s - %sr
)
�parttype�params�values�	enumerate�appendrZmaybebytestrr�
ValueErrorr)	rr�r�r�r��entries�idxZpar�valrrrr5s"

z"BundleUnknownFeatureError.__init__)NrrrBrrrrr�4sr�c@seZdZdZeZdS)�ReadOnlyPartErrorz<error raised when code tries to alter a part being generatedNr�rrrrr�Lsr�c@seZdZdZddd�ZdS)�
PushkeyFailedz9error raised when a pushkey part failed to update a valueNcCs<||_||_||_||_||_||_t�|d||f�dS)Ns"failed to update value for "%s/%s")�partid�	namespacerA�new�old�retr9r)rr�r�rAr�r�r�rrrrUs�zPushkeyFailed.__init__)NNNNNr^rrrrr�Rs�r�c@seZdZdZdd�ZdS)�CensoredNodeErrorz�error raised when content verification fails on a censored node

    Also contains the tombstone data substituted for the uncensored data.
    cCs.ddlm}t�|d|||�f�||_dS)Nr)�shorts%s:%s)rLr�r;r�	tombstone)rr�rLr�r�rrrrjszCensoredNodeError.__init__Nr^rrrrr�dsr�c@seZdZdZdS)�CensoredBaseErrora%error raised when a delta is rejected because its base is censored

    A delta based on a censored revision must be formed as single patch
    operation which replaces the entire base with new content. This ensures
    the delta may be applied by clones which have not censored the base.
    Nr:rrrrr�rsr�c@seZdZdZeZdS)�InvalidBundleSpecificationz{error raised when a bundle specification is invalid.

    This is used for syntax errors as opposed to support errors.
    Nr�rrrrr�{sr�c@seZdZdZeZdS)�UnsupportedBundleSpecificationz:error raised when a bundle specification is not supported.Nr�rrrrr��sr�c@seZdZdZeZdS)�CorruptedStatezCerror raised when a command is not able to read its state from fileNr�rrrrr��sr�c@seZdZdZdS)�PeerTransportErrorz>Transport-level I/O error when communicating with a peer repo.Nr:rrrrr��sr�c@seZdZdZeZdS)�InMemoryMergeConflictsErrorzFException raised when merge conflicts arose during an in-memory merge.Nr�rrrrr��sr�c@seZdZdZddd�ZdS)�WireprotoCommandErrorz�Represents an error during execution of a wire protocol command.

    Should only be thrown by wire protocol version 2 commands.

    The error is a formatter string and an optional iterable of arguments.
    NcCs||_||_dSr))r*Zmessageargs)rr*rrrrr�szWireprotoCommandError.__init__)Nr^rrrrr��sr�)\r&Z
__future__rr�r�
TYPE_CHECKING�typingrrrrr	r
rr�objectrr+r(r9r;r>r@�
IndexErrorrC�KeyErrorrErMrNrOrPrSrUrXrZr\r_rarbrdrfrgrirqrrrsrtrurvrxr{r|r}r~r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��RuntimeErrorr�r��KeyboardInterruptr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrr�<module>s�$
$					
	

	
		

Youez - 2016 - github.com/yon3zu
LinuXploit