403Webshell
Server IP : 217.160.0.36  /  Your IP : 216.73.216.190
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u90690018 ( 2806576)
PHP Version : 8.4.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/hgext/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/hgext/__pycache__/extdiff.cpython-313.pyc
�

6�h�f�
��SrSSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSKJ	r	J
r
Jr SSKJ
r
 SSKJrJr SSKJrJrJrJrJrJrJrJrJrJrJr SSKJrJr \R@(aSS	KJ!r!J"r# 0r$\RJ"\$5r%0r&\RN"\&5r'\'"S
SSS
S9 \'"S
SS
S9 \'"SSSS
S9 \'"SSS
S9 Sr(S?Sjr)Sr*S@Sjr+Sr,Sr-Sr.SASjr/SS/\
"S5\
"S 54S!S"/\
"S#5\
"S$54SS%S\
"S&5\
"S'54SS(S\
"S)5\
"S*54S+S,S\
"S-5\
"S$54SS.S\
"S/54SS0S\
"S154SS2S\
"S354/\R`-\Rb-r2\%"S
S4S5S\
"S65\
"S754/\2-\
"S85\%RfS
S99S:5r4"S;S<5r5S=r6S>r7\5/r8g)BaBcommand to allow external programs to compare revisions

The extdiff Mercurial extension allows you to use external programs
to compare revisions, or revision with working directory. The external
diff programs are called with a configurable set of options and two
non-option arguments: paths to directories containing snapshots of
files to compare.

If there is more than one file being compared and the "child" revision
is the working directory, any modifications made in the external diff
program will be copied back to the working directory from the temporary
directory.

The extdiff extension also allows you to configure new diff commands, so
you do not need to type :hg:`extdiff -p kdiff3` always. ::

  [extdiff]
  # add new command that runs GNU diff(1) in 'context diff' mode
  cdiff = gdiff -Nprc5
  ## or the old way:
  #cmd.cdiff = gdiff
  #opts.cdiff = -Nprc5

  # add new command called meld, runs meld (no need to name twice).  If
  # the meld executable is not available, the meld tool in [merge-tools]
  # will be used, if available
  meld =

  # add new command called vimdiff, runs gvimdiff with DirDiff plugin
  # (see http://www.vim.org/scripts/script.php?script_id=102) Non
  # English user, be sure to put "let g:DirDiffDynamicDiffText = 1" in
  # your .vimrc
  vimdiff = gvim -f "+next" \
            "+execute 'DirDiff' fnameescape(argv(0)) fnameescape(argv(1))"

Tool arguments can include variables that are expanded at runtime::

  $parent1, $plabel1 - filename, descriptive label of first parent
  $child,   $clabel  - filename, descriptive label of child revision
  $parent2, $plabel2 - filename, descriptive label of second parent
  $root              - repository root
  $parent is an alias for $parent1.

The extdiff extension will look in your [diff-tools] and [merge-tools]
sections for diff tool arguments, when none are specified in [extdiff].

::

  [extdiff]
  kdiff3 =

  [diff-tools]
  kdiff3.diffargs=--L1 '$plabel1' --L2 '$clabel' $parent $child

If a program has a graphical interface, it might be interesting to tell
Mercurial about it. It will prevent the program from being mistakenly
used in a terminal-only environment (such as an SSH terminal session),
and will make :hg:`extdiff --per-file` open multiple file diffs at once
instead of one by one (if you still want to open file diffs one by one,
you can use the --confirm option).

Declaring that a tool has a graphical interface can be done with the
``gui`` flag next to where ``diffargs`` are specified:

::

  [diff-tools]
  kdiff3.diffargs=--L1 '$plabel1' --L2 '$clabel' $parent $child
  kdiff3.gui = true

You can use -I/-X and list of file or directory names like normal
:hg:`diff` command. The extdiff extension makes snapshots of only
needed files, so running the external diff program will actually be
pretty fast (at least faster than having to compare the entire tree).
�)�annotationsN)�List�Optional�Tuple)�_)�nullrev�short)�archival�cmdutil�encoding�error�	filemerge�	formatter�
logcmdutil�pycompat�	registrar�scmutil�util)�procutil�
stringutil)�	localrepo�ui�extdiffsopts\..*�T)�default�genericsgui\..*)r�
diff-toolss
.*\.diffargs$s.*\.gui$sships-with-hg-corec
��[RRUR5nUS:XaSnUbSU[	U54-n[RRXF5n[R"U5 /nUb2UR[S5[U5[	U54-5 O&UR[S5[U5-5 U(a�URRSSS5 [R"UUUS	[R"X5US
9 [!U5H�n	["R$"U	5n
URSU
-5 UbM2[RRXz5nUR'X�R)U	5[R*"U545 M� Xh4$)z�snapshot files as of some revision
if not using snapshot, -I/-X does not work and recursive diff
in tools like kdiff3 and meld displays too many files.r�roots%s.%ss(making snapshot of %d files from rev %s
s3making snapshot of %d files from working directory
suisarchivemetaFsfiles)�match�subreposs  %s
)�os�path�basename�rootr	�join�mkdir�noter�lenr�	setconfigr
�archiver�
matchfiles�sortedr�pconvert�append�wjoin�lstat)r�repo�files�node�tmproot�listsubrepos�dirname�base�
fnsandstat�fn�wfn�dests            �//usr/lib/python3/dist-packages/hgext/extdiff.py�snapshotr>�so���g�g���t�y�y�)�G��#�~������g�u�T�{�3�3��
�7�7�<�<��)�D��H�H�T�N��J���
���
�:�;��5�z�5��;�'�
(�	
�
	���
�E�F��5�z�
�	
�

������%���7���������$�$�T�1�!�
	
���-�B��-�-��#�C��G�G�I��O�$��|��w�w�|�|�D�.���!�!�4���B�����$��"H�I� ���rc		�^^�UUUUUUUUS.mUU4Sjn	Sn
T(d [R"X�5(dUS-
n[R"X�U5$)N)sparentsparent1�parent2splabel1splabel2schildsclabelrc�>�URS5nURS5nT(dUS:XaU$U[R"TU5-$)N��r@)�groupr�
shellquote)r �pre�key�do3way�replaces   ��r=�quote�formatcmdline.<locals>.quote�sF����k�k�!�n���k�k�!�n���#��+��J��X�(�(����6�6�6rsJ(['"]?)([^\s'"$]*)\$(parent2|parent1?|child|plabel1|plabel2|clabel|root)\1s $parent1 $child)�re�search�sub)�cmdline�	repo_rootrH�parent1�plabel1�parent2�plabel2�child�clabelrJ�regexrIs  `        @r=�
formatcmdlinerX�sc�����������	�G�7�	E�
��"�)�)�E�3�3��&�&��
�6�6�%��(�(rc
��[R"U5n[R"[R"U5S[R
[R"U5[R"[RU5S9nU$)z^like 'procutil.system', but returns the Popen object directly
so we don't have to wait on it.
T)�shell�	close_fds�env�cwd)	r�shellenviron�
subprocess�Popen�tonativestr�closefds�tonativeenvr�rapply)�cmd�environr]r\�procs     r=�_systembackgroundrhsg���
�
��
(�C�������S�!���#�#�� � ��%��O�O�H�0�0�#�6��D��Krc
��/n[U5n[[U55GHQunn[RRUU5nUU-n[RR
U5(d[RnSnSnU(aY[RRU	U5nUU-n[RR
U5(d[Rn[RRU
U5nUU
-nU(a�[S5UUS-U4-n[S5nURSUU4-5nUS:XalUS:XafURU5SH0unnURSU[R"U54-5 M2 URSUU4-5nUS:XaMfUS:XaOUS:XaGM�US	:Xa O�[UUUUUUUUUS
9	nU(dU(d>UR!S[R""U5U4-5 UR%UUSS
9 GMUR!S[R""U5U4-5 ['UUS9nUR)U5 GMT U(a4UR+S5 UHnUR-5 M SSS5 gg!,(df   g=f)Nrsdiff %s (%d of %d)�sZ[Yns?]$$ &Yes, show diff$$ &No, skip this diff$$ &Skip remaining diffs$$ &? (display help)s%s %srCs%s - %s
rrB�rHrQrRrSrTrUrV�running %r in %s
r�r]�
blockedtags running %r in %s (backgrounded)
)r])r)�	enumerater-r"r#r&�isfiler�	osdevnullr�promptchoice�extractchoices�writer�lowerrX�debug�bytestr�systemrhr/�timeblockedsection�wait)rOrPr�guitoolrH�confirm�commonfilesr5�dir1a�dir1b�dir2�rev1a�rev1b�rev2�	waitprocs�
totalfiles�idx�
commonfile�path1a�label1a�path1b�label1b�path2�label2�	difffiles�	responses�r�c�t�
curcmdlinergs                               r=�_runperfilediffr�s���&�I��[�!�J�$�V�K�%8�9���Z������e�Z�0���u�$���w�w�~�~�f�%�%��'�'�F�������W�W�\�\�%��4�F� �5�(�G��7�7�>�>�&�)�)�!�+�+�������T�:�.���d�"����/�0���a���4��I�
�(��I�����I�y�+A� A�B�A��A�v��1�f� "� 1� 1�)� <�Q� ?���1������H�N�N�1�4E�0F�!F�G�!@�����I�y�3I�(I�J�A��1�f��A�v���a����a���"����������

�
��'�
�H�H�%��)9�)9�*�)E�w�(O�O�
�
�I�I�j�g�*�I�E�

�H�H�4��#�#�J�/��9�:�
�%�Z�W�=�D����T�"�Y:�\�
�
"�
"�:�
.�!���	�	��"�/�
.��
.�
.�s�J4�4
Kc��Sn[R"US05n[R"UXR	5XR	5/UUR
R
XG5US9 SSS5 [R"XU5n	[R"XU5n
UR
R
XI5nUR
R
XJ5n[UURSUU	SSUU
S9	nURS[R"U5U4-5 URXdSS9 g!,(df   N�=f)	Nshg-%h.patchr)�
fntemplater Frkrlrmrj)r�
nullformatterr�export�rev�vfs�reljoin�makefilenamerXr%rvrrwrx)
rr2�node1�node2r5�matcherrO�template�fm�label1r��file1�file2s
             r=�	diffpatchr�~s���H�	�	 �	 ��Z��	4������
�[�_�_�
����� 1�2���x�x�'�'��:��	
�
5��
!�
!�$�+�x�
8�F�
�
!�
!�$�+�x�
8�F��H�H���W�-�E��H�H���W�-�E����	�	���������G��H�H�
"�h�&6�&6�w�&?��%I�
I�J��I�I�g�z�I�:��7
5�	4�s�AD5�5
Ec�	�U
RS5nURXEUS9n[UR5[UR5[UR
5p�n
U(aPURXEUS9n[UR5[UR5[UR
5nnnO[5[5[5nnnX�-U-U-nUU-U-nU(dgX�-UU-U-
-n[
XUUR5Xk5SnUR5cSOSUR5-nU(a@UU-X�-U-
-n[
XUUR5Xk5SnSUR5-nOSnSn/nSnSnUR5b3[
XUUR5Xk5SnSUR5-nO/[U5S:�a[
XUSXk5unnOSnURnUn Un!Un"U
RS5(Gdk[U5S:XGa[R"UR55n#[RR!UUU#5nU#U-n [RR#U5(d[$R&nU(aZ[RR!UUU#5nU#U-n![RR#U5(d[$R&n[RR!UUU#5nU#U-n"[)UURUUU UU!UU"S9	nUR+S	[$R,"U5U4-5 UR/XvS
S9 O�[1UURUU	UU
RS5UU[RR!UU5U(a [RR!UU5OS[RR!UU5UUUS
9 UH�un$n%n[R2"U$5n&U&[4R6U[4R6:wd<U&R8UR8:wd"U&R:S-UR:S-:wdM�UR+SU%U$4-5 [R<"U$U%5 M� g)N�subrepos)r6rrs@%drj�per_filerkrlrrm�confirm)r{rHr|r}r5r~rr�r�r�r��@s6file changed while diffing. Overwriting: %s (src: %s)
)�get�status�set�modified�added�removedr>r4r�r)r%r�	localpath�popr"r#r&rprrqrXrvrwrxr�r1�stat�ST_MTIME�st_size�st_mode�copyfile)'rr2�ctx1a�ctx1b�ctx2r�r5rOrHr{�optsr!�st�mod_a�add_a�rem_a�stb�mod_b�add_b�rem_b�modadd�common�dir1a_filesr~r��dir1b_filesrr�r9�dir2rootr�r�r�r�r��common_file�copy_fn�
working_fn�cpstats'                                       r=�diffrevsr��s0���x�x��$�H�
���d�(��	;�B��b�k�k�*�C����M�3�r�z�z�?�%�E�
��l�l�4�x�l�@���������	�	�N�������u��e�"�e�S�U�C�E�e�u��
�]�U�
"�U�
*�F�
�e�^�e�
#�F����-�E�E�M�U�#:�;�K��R�{�E�J�J�L�'�L�Q�O�E��9�9�;�&�C�F�U�Y�Y�[�,@�E�
��e�m��
��'>�?����k�5�:�:�<��
�
�
�������$�������J��H��D��y�y�{����&�$�)�)�+�w�I�!�L������
�"��	�V��q��
$�B�f�d�G�N���j����9�9���G��G�
�F��8�8�K� � ��v�;�!���.�.�����6�K��G�G�L�L��%��=�E�!�E�)�G��7�7�>�>�%�(�(� �*�*��������W�e�[�A��%��-���w�w�~�~�e�,�,�$�.�.�E��7�7�<�<��$��<�D� �4�'�F� ���I�I��������

��	���&�(�*:�*:�7�*C�W�)M�M�N�
�	�	�'�:�	�>�	���I�I�����H�H�Z�(����'�'�,�,�w��.�28�"�'�'�,�,�w��.�d������h��-����	
�"$.����R����'�"��
�4�=�=�!�R��
�
�%6�6��~�~����+�����&�B�J�J��,>�?��H�H�/�2<�g�1F�G�
�
�M�M�'�:�.�%$.�(
rFc
�L�[R"USS5 URS5nURS5nURS5nURS5n	SU;n
U	(a7[R"XS5nUR5UR
5p�O�U(dU(aT[R"X/U/-S5n[R"XS5nU[n
[R"XS5nO<[R"X5up�U(dUSR
5n
O	U[n
U
(aU
R5[:XaSn
[R"X�U5nURS	5(a�URS
5(a[R"[S55eURS5(a[R"[S
55eUR!5c[R"[S55e["R$"SS9nURS	5(a[['XUR!5UR!5X�U5UR)[S55 [*R,"U5 $[/UUUU
UUUUU
UU5UR)[S55 [*R,"U5 $!UR)[S55 [*R,"U5 f=f)z�Do the actual diff:

- copy to a temp structure if diffing 2 internal revisions
- copy to a temp structure if diffing working revision with
  another one and more than 1 file is changed
- just invoke the diff for a single file in the working dir
�rev�change�from�tos$parent2NsnowarnF�patchr�s&--patch cannot be used with --subreposr�s&--patch cannot be used with --per-files--patch requires two revisionssextdiff.)�prefixscleaning up temp directory
)r�check_at_most_one_argr�r�	revsingle�p1�p2r�unhidehashlikerevsr�revpairr�r r
�Abortrr4r�mkdtempr�r(�shutil�rmtreer�)rr2rO�patsr�r{�revs�from_rev�to_rev�changerHr�r�r�r�r5s                r=�dodiffr�3sn���!�!�$��	�:��8�8�F��D��x�x�� �H�
�X�X�e�_�F�
�X�X�i�
 �F�
�G�
#�F�
��#�#�D�$�7���w�w�y�$�'�'�)�u�	�V��)�)��*��x�'��
���$�$�T�T�:���W�
���#�#�D�$�7�� �(�(��4������J�M�M�O�E���M�E���9�9�;�'�!��F��m�m�D��-�G��x�x�����8�8�K� � ��+�+�a� I�J�K�K��8�8�K� � ��+�+�a� I�J�K�K��9�9�;���+�+�a� A�B�C�C����k�2�G���8�8�H�����%�*�*�,��	�	��W�w��&	����1�2�3��
�
�g��!������������
�	����1�2�3��
�
�g���	����1�2�3��
�
�g��s�;AK1�,K1�12L#�o�options!pass option to comparison programsOPT�rr�srevision (DEPRECATED)sREVr�srevision to diff fromsREV1r�srevision to diff tosREV2�cr�schange made by revisionsper-files/compare each file instead of revision snapshotsr�s3prompt user before each external program invocationr�s!compare patches for two revisions�p�programscomparison program to runsCMDshg extdiff [OPT]... [FILE]...��helpcategory�	inferrepoc��[R"U5nURS5nURS5nU(dSnU=(d S/nSR[	[
RU/U-55n[XXbU5$)a�use external program to diff repository (or selected files)

Show differences between revisions for the specified files, using
an external program. The default program used is diff, with
default options "-Npru".

To select a different program, use the -p/--program option. The
program will be passed the names of two directories to compare,
unless the --per-file option is specified (see below). To pass
additional options to the program, use -o/--option. These will be
passed before the names of the directories or files to compare.

The --from, --to, and --change options work the same way they do for
:hg:`diff`.

The --per-file option runs the external program repeatedly on each
file to diff, instead of once on two directories. By default,
this happens one by one, where the next file diff is open in the
external program only once the previous external program (for the
previous file diff) has exited. If the external program has a
graphical interface, it can open all the file diffs at once instead
of one by one. See :hg:`help -e extdiff` for information about how
to tell Mercurial that a given program has a graphical interface.

The --confirm option will prompt the user before each invocation of
the external program. It is ignored if --per-file isn't specified.
r�r�sdiffs-Npru� )r�byteskwargsr�r&�maprrEr�)rr2r�r��program�optionrOs       r=�extdiffr��sv��L����%�D��h�h�z�"�G�
�X�X�i�
 �F�����%�H�:���i�i��H�/�/�'��V�1C�D�E�G��"�G�4�0�0rc�$�\rSrSrSrSrSrSrg)�savedcmdi�a�use external program to diff repository (or selected files)

Show differences between revisions for the specified files, using
the following program::

    %(path)s

When two revision arguments are given, then changes are shown
between those revisions. If only one revision is specified then
that revision is compared to the working directory, and, when no
revisions are specified, the working directory files are compared
to its parent.
c���[R"U5RSS5nU=RS[R
"[R"U550-slXlX0lX@l	g)Ns\\�\r#)
r�	escapestrrI�__doc__r�sysstr�uirepr�_name�_cmdline�_isgui)�selfrer#rO�isgui�docpaths      r=�__init__�savedcmd.__init__�sW���&�&�t�,�4�4�W�e�D����������1B�1B�7�1K�!L�M�M���
��
��rc	���UR(a^[R"5(dD[S5UR-n[S5UR-n[
R"XVS9e[R"U5nSR[[RUS55nU(aSU-n[XURU-X4URS9$)Nstool '%s' requires a GUIs2to override, use: --config diff-tools.%s.gui=False)�hintr�r�)r{)r�r�guirr�r
r�rr�r&r�rEr�r�)rrr2r�r��msgr�optionss        r=�__call__�savedcmd.__call__�s����;�;�x�|�|�~�~��/�0�4�:�:�=�C��G�H��*�*��
��+�+�c�-�-��#�#�D�)���)�)�C�� 3� 3�T�)�_�E�F����W�n�G���d�m�m�g�-�t�4�;�;�
�	
r)r�r�r�N)�__name__�
__module__�__qualname__�__firstlineno__r�rr
�__static_attributes__�rr=r�r��s����
rr�c�r�[R"U5nURS5(a�USSnU(d8[R"U5nUc[
R"X5=(d UnURSSU-5n[R"U5nU(aUSU--
nURSSU-5nO�U(a%Un[[R"U55S:�nOP[R"U5nUc[
R"X5=(d Un[R"U5nS	nURSSU-5nU(d0US
-nSH%nURXv5nU(dMUSU--
n O Uc$US-nSHnURXv5nUcM O UcS	nXXE4$)
am
returns following things for a
```
[extdiff]
<cmd> = <path>
```
entry:

cmd: command/tool name
path: path to the tool
cmdline: the command which should be run
isgui: whether the tool uses GUI or not

Reads all external tools related configs, whether it be extdiff section,
diff-tools or merge-tools section, or its specified in an old format or
the latest format.
scmd.�Nr�opts.r��gui.rjFs	.diffargs)rsmerge-toolss.gui)
r�
expandpath�
startswithr�findexer�findexternaltool�configrE�
configboolr)r�
shlexsplit)	rrer#�diffoptsrOrrG�section�argss	         r=�_gettooldetailsr �s���$�?�?�4� �D�
�~�~�g����!�"�g����#�#�C�(�D��|� �1�1�"�:�A�c���9�9�Z��C��8���%�%�d�+����t�h��&�G��
�
�j�'�C�-�8����G��8�.�.�w�7�8�1�<�H��#�#�C�(�D��|� �1�1�"�:�A�c���)�)�$�/�G��H��
�
�j�'�C�-�8����L� ��6�G��9�9�W�*�D��t��4�$�;�&���	7�

�}��G�m��6�G��M�M�'�/�E�� ��7�
�}����g�$�$rc	�.�URS5H�upURS5(dURS5(aM3[XU5upp4[U[SS[S5U-[RSS9"[XX455 M� g)Nrrrshg %s [OPTION]... [FILE]...Tr�)�configitemsrr �command�extdiffoptsr�CATEGORY_FILE_CONTENTSr�)rrer#rOrs     r=�uisetupr&5s����^�^�J�/�	���>�>�(�#�#�s�~�~�g�'>�'>��$3�B�T�$B�!��7�����N�
�,�-��3� �7�7��	
��3�g�
-�
	/�	0r)rzuimod.uir2zlocalrepo.localrepositoryr4zOptional[bytes]r5�bytesr6�bool�returnz7Tuple[bytes, List[Tuple[bytes, bytes, os.stat_result]]])NN)F)9r��
__future__rr"rLr�r�r_�typingrrr�mercurial.i18nr�mercurial.noderr	�	mercurialr
rrr
rrrrrrr�mercurial.utilsrr�
TYPE_CHECKINGrr�uimod�cmdtabler#�configtable�
configitem�
testedwithr>rXrhr�r�r�r��walkopts�subrepooptsr$r%r�r�r r&�
i18nfunctionsrrr=�<module>r9s���J�X#�	�	�
���
����������

����
��
�
�
�H�
%����
�
!�
!�+�
.�
�
�����	�����������	������#�
�3��3�
#�3��	3�
�3��
3�=�3�l')�T�f�R
�BQ
�hG�Z
���
�2�3�
�f�I�	
�
�v�r�1�5�6��&�	�B�	�g�s�A�6�7��7��D�	�e�S�!�2�3�Q�w�Z�@�	
�y�#�q�!;�<�a��i�H����
�@�A�		
�
���
�D�E�		
�

�h��a� D�E�F�1�4���5�6���7��@	��	
�z�3��">� ?��6��K�����&�'��/�/��	�#1�	�#1�L'
�'
�T;%�|/��
�
r

Youez - 2016 - github.com/yon3zu
LinuXploit