403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.139
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/proc/self/root/usr/lib/python3/dist-packages/hgext/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/proc/self/root/usr/lib/python3/dist-packages/hgext/__pycache__/logtoprocess.cpython-313.pyc
�

6�hQ��F�SrSSKJr SSKrSSKJr Sr"SS5rSrg)	a:send ui.log() data to a subprocess (EXPERIMENTAL)

This extension lets you specify a shell command per ui.log() event,
sending all remaining arguments to as environment variables to that command.

Positional arguments construct a log message, which is passed in the `MSG1`
environment variables. Each keyword argument is set as a `OPT_UPPERCASE_KEY`
variable (so the key is uppercased, and prefixed with `OPT_`). The original
event name is passed in the `EVENT` environment variable, and the process ID
of mercurial is given in `HGPID`.

So given a call `ui.log('foo', 'bar %s
', 'baz', spam='eggs'), a script
configured for the `foo` event can expect an environment with `MSG1=bar baz`,
and `OPT_SPAM=eggs`.

Scripts are configured in the `[logtoprocess]` section, each key an event name.
For example::

  [logtoprocess]
  commandexception = echo "$MSG1" > /var/log/mercurial_exceptions.log

would log the warning message and traceback of any failed command dispatch.

Scripts are run asynchronously as detached daemon processes; mercurial will
not ensure that they exit cleanly.

�)�annotationsN)�procutilsships-with-hg-corec�*�\rSrSrSrSrSrSrSrg)�
processlogger�0zWMap log events to external commands

Arguments are passed on as environment variables.
c�B�[URS55Ulg�Nslogtoprocess)�dict�configitems�_scripts)�self�uis  �4/usr/lib/python3/dist-packages/hgext/logtoprocess.py�__init__�processlogger.__init__6s���R�^�^�O�<�=��
�c�J�[URRU55$)N)�boolr�get)r
�events  r�tracked�processlogger.tracked9s���D�M�M�%�%�e�,�-�-rc�(�URUnSn[U5U:�aUSUS-nU[R"5US.nUR	SUR555 [R"U5n[R"XXSS9 g)Ni��s (truncated))sEVENTsHGPIDsMSG1c3�P# �UHupSUR5-U4v� M g7f)sOPT_%sN)�upper)�.0�key�values   r�	<genexpr>�$processlogger.log.<locals>.<genexpr>Ks%���
�?K���Y�����
$�e�,�|�s�$&T)�shell)	r�len�os�getpid�update�itemsr�shellenviron�runbgcommand)	r
rr�msg�opts�script�maxmsg�env�fullenvs	         r�log�processlogger.log<s������u�%�����s�8�f��
�g�v�,��0�C���i�i�k��
��	�
�
�
�?C�z�z�|�
�	
��'�'��,�����f�T�:r)rN)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrr/�__static_attributes__�rrrr0s���
>�.�;rrc�:�URS[U55 gr	)�	setloggerr)rs r�
uipopulater:Rs���L�L��-��"3�4r)	r5�
__future__rr#�mercurial.utilsr�
testedwithrr:r7rr�<module>r>s,���8#�	�$�#�
�;�;�D5r

Youez - 2016 - github.com/yon3zu
LinuXploit