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/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgext/__pycache__/win32text.cpython-39.pyc
a

�+�b��	@s*dZddlmZddlZddlmZddlmZddlm	Z	m
Z
mZmZddl
mZdZiZe�e�Zed	d
dd�e�d
ej�Zddd�Zddd�Zd2dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zeeeeeeeed%�Z d&d'�Z!d(d)�Z"d*d+�Z#d,d-�Z$d.d/�Z%d0d1�Z&dS)3aperform automatic newline conversion (DEPRECATED)

  Deprecation: The win32text extension requires each user to configure
  the extension again and again for each clone since the configuration
  is not copied when cloning.

  We have therefore made the ``eol`` as an alternative. The ``eol``
  uses a version controlled file for its configuration and each clone
  will therefore use the right settings from the start.

To perform automatic newline conversion, use::

  [extensions]
  win32text =
  [encode]
  ** = cleverencode:
  # or ** = macencode:

  [decode]
  ** = cleverdecode:
  # or ** = macdecode:

If not doing conversion, to make sure you do not commit CRLF/CR by accident::

  [hooks]
  pretxncommit.crlf = python:hgext.win32text.forbidcrlf
  # or pretxncommit.cr = python:hgext.win32text.forbidcr

To do the same check on a server to prevent CRLF/CR from being
pushed or pulled::

  [hooks]
  pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
  # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
�)�absolute_importN)�_)�short)�cmdutil�
extensions�pycompat�	registrar)�
stringutilsships-with-hg-core�	win32text�warnT)�defaults	(^|[^
])
sCRLFsCR)�
�
scleversmaccCs<||vr8|r8|r8|r8|�td�|t||j�d�f�dS)Ns�WARNING: %s already has %s line endings
and does not need EOL conversion by the win32text plugin.
Before your next commit, please reconsider your encode/decode settings in 
Mercurial.ini or %s.
shgrc)�warnr�
newlinestrZvfs�join)�s�newline�ui�repo�filename�r�5/usr/lib64/python3.9/site-packages/hgext/win32text.py�checknewlineOs���rcKst|dfi|��t�d|�S)Nr
s\1
)r�re_single_lf�sub�r�cmd�kwargsrrr�
dumbdecode`srcCs|�dd�S)Nr
�
��replace�rrrrr�
dumbencodefsr$cKst|dfi|��|�dd�S�Nrr )rr"rrrr�
macdumbdecodejsr&cCs|�dd�Sr%r!r#rrr�
macdumbencodeosr'cKs t�|�st||fi|��S|S�N)r	�binaryrrrrr�cleverdecodess
r*cCst�|�st||�S|Sr()r	r)r$r#rrr�cleverencodeys

r+cKs t�|�st||fi|��S|Sr()r	r)r&rrrr�	macdecodes
r,cCst�|�st||�S|Sr()r	r)r'r#rrr�	macencode�s

r-)sdumbdecode:sdumbencode:s
cleverdecode:s
cleverencode:smacdumbdecode:smacdumbencode:s
macdecode:s
macencode:cKsd}t�}|d}t�|j��||��dd�D]�}	||	}
|
��D]�}||vsF||vsF||
vrdqF|�|�|
|��}t	�
|�sF||vrF|s�|�td�t
|�|�td�t|
���|f�d}qFq2|�r
|dk�r
t
|��}
t|}|�td	�|
|
||f�|S)
NFstip����s=attempt to commit or push text file(s) using %s line endings
s
in %s: %s
Tspretxnchangegroups�
To prevent this mistake in your local repository,
add to Mercurial.ini or .hg/hgrc:

[hooks]
pretxncommit.%s = python:hgext.win32text.forbid%s

and also consider adding:

[extensions]
win32text =
[encode]
** = %sencode:
[decode]
** = %sdecode:
)�setrZxrangeZ	changelogZtiprev�rev�files�add�datar	r)rrrr�node�lower�	filterstr)rr�hooktyper5rrZhalt�seenZtipr1�c�fr4Zcrlf�filterrrr�
forbidnewline�sD�
����
��r=cKst||||dfi|��S)Nr
�r=�rrr8r5rrrr�
forbidcrlf�sr@cKst||||dfi|��S)Nrr>r?rrr�forbidcr�srAcCs0|��sdSt�t�D]\}}|�||�qdSr()�localrZ	iteritems�_filtersZ
adddatafilter)rr�name�fnrrr�	reposetup�srFcOs�|j}|���P|ddD]2}	|�|	�}
|
dur|
jr|j|	|
jd|
jd�qWd�n1sd0Y||||||g|�Ri|��S)NsrevertrT)�
p1_tracked�p2_info)ZdirstateZparentchangeZ	get_entryrGZupdate_fileZtrackedrH)Zorigr�ctx�namesZuipathfn�actions�argsrZdsr�entryrrr�wrap_revert�s

�&rNcCs,|�dd�r|�td��t�tdt�dS)Nr
rsKwin32text is deprecated: https://mercurial-scm.org/wiki/Win32TextExtension
Z_performrevert)Z
configboolrrrZwrapfunctionrrN)rrrr�extsetup�s��rO)NNN)'�__doc__Z
__future__r�reZmercurial.i18nrZmercurial.noderZ	mercurialrrrrZmercurial.utilsr	Z
testedwithZconfigtableZ
configitem�compile�	MULTILINErrr7rrr$r&r'r*r+r,r-rCr=r@rArFrNrOrrrr�<module>sR$
�


�6

Youez - 2016 - github.com/yon3zu
LinuXploit