403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.193
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/lib/python3/dist-packages/breezy/bzr/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/bzr/__pycache__/conflicts.cpython-313.pyc
�

p��g&Y����SSKrSSKrSSKJr \"\"5S5 SSKJr SSKJr	 SSKJ
r SS	KJr S
r
"SS\	5r"S
S\5r
"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS \5r"S!S"\5r"S#S$\5r"S%S&\5r0qS'r\"\\\\\\\\\\5
 g)(�N�)�lazy_importzU

from breezy import (
    cache_utf8,
    errors,
    transform,
    osutils,
    )
)�	transport)�Conflict)�ConflictList�)�rio)z.THIS�.BASE�.OTHERc�^�\rSrSrSrSrSU4SjjrSrSrSr	Sr
S	rS
rSr
SrS
r\S5r\S5rSrSrSrSrSrSrSrU=r$)r�+z%Base class for all types of conflict.Fc�>�[TU]U5 [U[5(a[RU5nX lg�N)�super�__init__�
isinstance�str�
cache_utf8�encode�file_id)�self�pathr�	__class__s   ��6/usr/lib/python3/dist-packages/breezy/bzr/conflicts.pyr�Conflict.__init__1s4���
������g�s�#�#� �'�'��0�G���c���[R"URURS9nURb+URSURR
S55 U$)N)�typerr�utf8)r	�Stanza�
typestringrr�add�decode�r�ss  r�	as_stanza�Conflict.as_stanza9sF���J�J�D�O�O�$�)�)�<���<�<�#�
�E�E�)�T�\�\�0�0��8�9��rc�H�URURUR/$r)r!rr�rs r�	_cmp_list�Conflict._cmp_list@s��������D�L�L�9�9rc�h�[USS5cgUR5nUR5nX#:H$)Nr*F)�getattrr*)r�other�x�ys    r�__eq__�Conflict.__eq__Cs3���5�+�t�,�4���N�N����O�O����v�
rc�X�[[U5URUR45$r)�hashrrrr)s r�__hash__�Conflict.__hash__Js ���T�$�Z����D�L�L�9�:�:rc�.�URU5(+$r)r1)rr.s  r�__ne__�Conflict.__ne__Ms���;�;�u�%�%�%rc�"�UR5$r��describer)s r�__unicode__�Conflict.__unicode__P����}�}��rc�"�UR5$rr;r)s r�__str__�Conflict.__str__Sr?rc�4�URUR-$r)�format�__dict__r)s rr<�Conflict.describeVs���{�{�T�]�]�*�*rc�|�[UR5nURRUS'URU-$)N�class)�dictrEr�__name__�rformat)r�rdicts  r�__repr__�Conflict.__repr__Ys2���T�]�]�#�����0�0��g���|�|�e�#�#rc� �[U"S0UD6$)N�)�ctype)r�kwargss  r�factory�Conflict.factory^s���T�{�$�V�$�$rc��URbURUR4$[USS5bURUR4$SUR4$�N�
conflict_path)rr!r-rW)�conflicts r�sort_key�Conflict.sort_keycsX���=�=�$��=�=�(�"5�"5�5�5�
�X���
5�
A��)�)�8�+>�+>�>�>���,�,�,�,rc��[USRU5S5nUc%[URRS-U-5eU"U5 g)z�Apply the specified action to the conflict.

:param action: The method name to call.

:param tree: The tree passed as a parameter to the method.
z	action_{}N�.)r-rD�NotImplementedErrorrrJ)r�action�tree�meths    r�do�Conflict.dolsH���t�[�/�/��7��>���<�%�d�n�n�&=�&=��&C�f�&L�M�M��T�
rc�,�[UR5er)r]�action_auto�rr_s  rrd�Conflict.action_autoxs��!�$�"2�"2�3�3rc��g)z5Mark the conflict as solved once it has been handled.NrPres  r�action_done�Conflict.action_done{s��	
rc�,�[UR5er)r]�action_take_thisres  rrk�Conflict.action_take_this�s��!�$�"7�"7�8�8rc�,�[UR5er)r]�action_take_otherres  rrn�Conflict.action_take_other�s��!�$�"8�"8�9�9rc��UR5nUR"U/UQ70UD6 SSS5 g!,(df   g=fr)�	transform�_resolve)rr_�argsrR�tts     r�_resolve_with_cleanups�Conflict._resolve_with_cleanups�s0��
�^�^�
���M�M�"�.�t�.�v�.��
�
�s�1�
?�rr)rJ�
__module__�__qualname__�__firstlineno__�__doc__�	has_filesrr&r*r1r5r8r=rAr<rM�staticmethodrSrYrardrhrkrnru�__static_attributes__�
__classcell__)rs@rrr+s����/��I���:��;�&���+�$�
�%��%��-��-�
�4�
�
9�:�/�/rrc�4�\rSrSr\S5rSrSSjrSrg)r�c	��[5nUH6nUR[R"S0UR	5D65 M8 U$)z7Produce a new ConflictList from an iterable of stanzas.rP)r�appendrrS�as_dict)�stanzas�	conflicts�stanzas   r�from_stanzas�ConflictList.from_stanzas�s>��!�N�	��F����X�-�-�A����0@�A�B���rc#�B# �UHnUR5v� M g7f)zGenerator of stanzas.N)r&)rrXs  r�
to_stanzas�ConflictList.to_stanzas�s����H��$�$�&�&��s�c��[U5n0n[5n[5n[5n	UHn
URU
5nUcMX�U'M UH�nSn
SHdn[X�S5nUcMX�;aSn
UR	U5 U(dM5[
R
X_5(dMQSn
UR	U5 Mf SH-n[X�S5nUcMUUnSn
UR	U5 M/ U
(aU	RU5 M�URU5 M� USLa�UVs/sH
nUU;dMUPM snHln
[RRURU
55(d[SRU
55 MR[SRU
55 Mn X�4$![a GMf=fs snf)z�Select the conflicts associated with paths in a tree.

File-ids are also used for this.
:return: a pair of ConflictLists: (not_selected, selected)
NF)rrWT)r�conflict_file_idz{} does not existz{} is not conflicted)�setr�path2idr-r"�osutils�
is_inside_any�KeyErrorr��osr�exists�abspath�printrD)rr_�paths�
ignore_misses�recurse�path_set�ids�selected_paths�
new_conflicts�selected_conflictsrrrX�selected�key�cpath�cfile_id�ps                  r�select_conflicts�ConflictList.select_conflicts�s����u�:�������$��
�)�^���D��l�l�4�(�G��"�#�G���
�H��H�0����t�4���=���$�#�H�"�&�&�u�-��7��,�,�X�=�=�#'��&�*�*�5�1�1�7��"�8�$�7���#�����M�E� ���"�"�5�)�7��"�)�)�(�3��$�$�X�.�7�8��$�$)�E�E�q�Q�n�-D��E�E���w�w�~�~�d�l�l�4�&8�9�9��-�4�4�T�:�;��0�7�7��=�>�	F�
�0�0�� �����Fs�F5�+
G�9G�5
G�GrPN)FF)	rJrxryrzr}r�r�r�r~rPrrrr�s������'�
21rrc�X�\rSrSrSrSrSrSrSSjrSr	S	r
S
rSrSr
S
rSrSrg)�PathConflict��z.A conflict was encountered merging file paths.z
path conflictz+Path conflict: %(path)s / %(conflict_path)sz3%(class)s(%(path)r, %(conflict_path)r, %(file_id)r)Nc�<�[RXU5 X lgr)rrrW)rrrWrs    rr�PathConflict.__init__�s�����$�g�.�*�rc��[RU5nURbURSUR5 U$rV)rr&rWr"r$s  rr&�PathConflict.as_stanza�s7�����t�$�����)�
�E�E�/�4�#5�#5�6��rc��/$rrPr)s r�associated_filenames�!PathConflict.associated_filenames�����	rc��SnUS:XaKURS:XagURS:Xa)URnURR5SnOkUS:XaKURS:XagURS:Xa)URnURR5SnO[	SRU55eUbbUR
U5nURURW5n[RXX�RU55 URXrS9 OURU5nURU5n	UR[R!U5X�5 UR#5 g)	z�Resolve the conflict.

:param tt: The TreeTransform where the conflict is resolved.
:param file_id: The retained file id.
:param path: The retained path.
:param winner: 'this' or 'other' indicates which side is the winner.
N�this�	<deleted>rr.���zbad winner: {!r}rw)rrW�_tree�get_parent_ids�AssertionErrorrD�trans_id_tree_path�_revision_treerq�create_from_tree�id2path�version_file�trans_id_file_id�get_tree_parent�adjust_pathr��basename�apply)
rrtrr�winner�path_to_create�revid�tidr_�
parent_tids
          rrr�PathConflict._resolve�sG�����V���y�y�K�'���!�!�[�0�!%�������/�/�1�!�4���
�w�
��!�!�[�0���y�y�K�'�!%�!3�!3�����/�/�1�"�5���!�!3�!:�!:�6�!B�C�C��%��'�'��7�C��&�&�r�x�x��7�D��&�&�r��l�l�7�6K�L��O�O�C�O�1��%�%�g�.�C��'�'��,�
�
���w�'�'��-�z�?�
���
rc�L�URRRU5$r)�branch�
repository�
revision_tree)rr_r�s   rr��PathConflict._revision_trees���{�{�%�%�3�3�E�:�:rc��/nURUR4H!nUS:XaMUcMURU5 M# SnUR5H8nUR	X5nUHnURU5nUcMXd4s s $ M: g)Nr��NN)rrWr�r�r�r�)rr_�possible_pathsr�rr��revtrees       r�_infer_file_id�PathConflict._infer_file_ids������)�)�T�/�/�0�A��K����}��%�%�a�(�1����(�(�*�E��)�)�$�6�G�#��!�/�/�!�,���&�"�+�+�$�+�rc���URb&URXRURSS9 gURU5up#UR	URU5/USS9 g)Nr��r�F��old_tree�backups)rrurr��revertr��rr_r�rs    rrk�PathConflict.action_take_this$s\���<�<�#��'�'��l�l�D�I�I�f�'�U� $�2�2�4�8��G��K�K�����1�2�W�e�K�Trc���URb&URXRURSS9 gURU5up#UR	URU5/USS9 g)Nr.r�Fr�)rrurWr�r�r�r�s    rrn�PathConflict.action_take_other-sc���<�<�#��'�'��l�l�D�$6�$6�w�
(�
� $�2�2�4�8��G��K�K�����1�2�W�e�K�Tr)rWr�)rJrxryrzr{r!rDrKrr&r�rrr�r�rkrnr~rPrrr�r��s?��8� �J�
:�F�C�G�+���%�N;��*U�	Urr�c�<�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�ContentsConflicti9zBThe files are of different types (or both binary), or not present.Tzcontents conflictzContents conflict in %(path)sc�J�SVs/sHoRU-PM sn$s snf)N)r
r)r�r�suffixs  rr��%ContentsConflict.associated_filenamesBs#��1D�E�1D�v�	�	�F�"�1D�E�E��Es� c���URURURS-U-55 UR
R
UR5nURU5nUbQURU5nUR[RUR5XT5 UR5 gg![Ra N�f=f![Ra SnN�f=f)z�Resolve the conflict.

:param tt: The TreeTransform where the conflict is resolved.
:param suffix_to_remove: Either 'THIS' or 'OTHER'

The resolution is symmetric: when taking THIS, OTHER is deleted and
item.THIS is renamed into item and vice-versa.
r\N)�delete_contentsr�r�_mod_transport�
NoSuchFiler�r�r�errors�NoSuchIdr�r�r�r�r�)rrt�suffix_to_remove�	this_path�this_tidr�s      rrr�ContentsConflict._resolveEs���
	�
����%�%�d�i�i�#�o�8H�&H�I�
�
	8����(�(����6�I��,�,�Y�7�H����+�+�H�5�J��N�N�7�+�+�D�I�I�6�
�M��H�H�J� ��!�(�(�	�
�		�����	��H�
	�s"�0B>�%C�>C�C�C1�0C1c�(�URUS5 g�N�OTHER�rures  rrk�!ContentsConflict.action_take_thisk����#�#�D�'�2rc�(�URUS5 g�N�THISr�res  rrn�"ContentsConflict.action_take_othern����#�#�D�&�1rrPN)
rJrxryrzr{r|r!rDr�rrrkrnr~rPrrr�r�9s*��L��I�$�J�
,�F�F�$�L3�2rr�c�j�\rSrSrSrSrSrSrSr\	R"S5rSrS	r
S
rSrSrS
rg)�TextConflictitzBThe merge algorithm could not resolve all differences encountered.Tz
text conflictzText conflict in %(path)sz %(class)s(%(path)r, %(file_id)r)s^(<{7}|={7}|>{7})c�R�[Vs/sHoRU-PM sn$s snfr)�CONFLICT_SUFFIXESrr�s  rr��!TextConflict.associated_filenames�s#��1B�C�1B�v�	�	�F�"�1B�C�C��Cs�$c���URUR5nURU5nURS-U-nUR	U5nURU5nUR[RUR5Xv5 UR[RU5XC5 URU5 URX`RS9 UR5 g)atResolve the conflict by copying one of .THIS or .OTHER into file.

:param tt: The TreeTransform where the conflict is resolved.
:param winner_suffix: Either 'THIS' or 'OTHER'

The resolution is symmetric, when taking THIS, item.THIS is renamed
into item and vice-versa. This takes one of the files as a whole
ignoring every difference that could have been merged cleanly.
r\rwN)r�rr�rr�r�r�r��unversion_filer�r�)rrt�
winner_suffix�item_tid�item_parent_tid�winner_path�
winner_tid�winner_parent_tids        rrr�TextConflict._resolve�s����&�&�t�|�|�4���,�,�X�6���i�i�#�o�
�5���*�*�;�7�
��.�.�z�:��
���w�'�'��	�	�2�4E�R�
���w�'�'��4�o�P�
���(�#�
���
�L�L��9�
���
rc�j�URUR5nUS:wa[	S5eUR
RnURUR5nUHnU"U5(dM[	S5e SSS5 g![Ra gf=f!,(df   g=f)N�filezConflict is not a filezConflict markers present)�kindrr�r�r]�_conflict_re�search�get_file)rr_r	�conflict_markers_in_line�f�lines      rrd�TextConflict.action_auto�s���	��9�9�T�Y�Y�'�D��6�>�%�&>�?�?�#'�#4�#4�#;�#;� �
�]�]�4�9�9�
%����+�D�1�1�-�.H�I�I��&�
%��
�(�(�	��	��&�
%�s#�B
�B$�4
B$�
B!� B!�$
B2c�(�URUS5 gr�r�res  rrk�TextConflict.action_take_this�r�rc�(�URUS5 gr�r�res  rrn�TextConflict.action_take_other�r�rrPN)rJrxryrzr{r|r!rDrK�re�compiler
r�rrrdrkrnr~rPrrr�r�tsC��L��I� �J�
(�F�0�G��:�:�2�3�L�D��2J� 2�3rr�c�8�\rSrSrSrSrS
SjrSrSrSr	S	r
g)�HandledConflicti�zZA path problem that has been provisionally resolved.
This is intended to be a base class.
z,%(class)s(%(action)r, %(path)r, %(file_id)r)Nc�<�[RXU5 Xlgr)rrr^)rr^rrs    rr�HandledConflict.__init__�s�����$�g�.��rc�H�[RU5UR/-$r)rr*r^r)s rr*�HandledConflict._cmp_list�s���!�!�$�'�4�;�;�-�7�7rc�h�[RU5nURSUR5 U$)Nr^)rr&r"r^r$s  rr&�HandledConflict.as_stanza�s)�����t�$��	���h����$��rc��/$rrPr)s rr��$HandledConflict.associated_filenames�r�r)r^r)rJrxryrzr{rKrr*r&r�r~rPrrrr�s"���=�G��8��
rrc�4�\rSrSrSrSrS	SjrSrSrSr	g)
�HandledPathConflicti�z`A provisionally-resolved path problem involving two paths.
This is intended to be a base class.
zU%(class)s(%(action)r, %(path)r, %(conflict_path)r, %(file_id)r, %(conflict_file_id)r)Nc��[RXX$5 X0l[U[5(a[
R
U5nXPlgr)rrrWrrrrr�)rr^rrWrr�s      rr�HandledPathConflict.__init__�sB��	� � ��t�=�*���&��,�,�)�0�0�1A�B�� 0�rc�^�[RU5URUR/-$r)rr*rWr�r)s rr*�HandledPathConflict._cmp_list�s1���(�(��.�����!�!�2
�
�	
rc���[RU5nURSUR5 URb+URSURRS55 U$)NrWr�r)rr&r"rWr�r#r$s  rr&�HandledPathConflict.as_stanza�sW���%�%�d�+��	���o�t�1�1�2�� � �,�
�E�E�$�d�&;�&;�&B�&B�6�&J�K��r)r�rWr�)
rJrxryrzr{rKrr*r&r~rPrrr"r"�s'���
	.��KO�	1�
�rr"c� �\rSrSrSrSrSrSrg)�DuplicateIDi�z Two files want the same file_id.zduplicate idz>Conflict adding id to %(conflict_path)s.  %(action)s %(path)s.rPN)rJrxryrzr{r!rDr~rPrrr*r*�s��*��J�
M�Frr*c�,�\rSrSrSrSrSrSrSrSr	g)	�DuplicateEntryi�z1Two directory entries want to have the same name.�	duplicatez=Conflict adding file %(conflict_path)s.  %(action)s %(path)s.c��URUR/SSS9 URURUR5 g�NTF��force�
keep_files)�removerW�
rename_onerres  rrk�DuplicateEntry.action_take_this�s5�����T�'�'�(����G�����	�	�4�#5�#5�6rc�<�URUR/SSS9 gr/�r3rres  rrn� DuplicateEntry.action_take_other������T�Y�Y�K�t���>rrPN�
rJrxryrzr{r!rDrkrnr~rPrrr,r,�s��;��J�
L�F�7�?rr,c�,�\rSrSrSrSrSrSrSrSr	g)	�
ParentLoopiz�An attempt to create an infinitely-looping directory structure.

This is rare, but can be produced like so:

tree A:
  mv foo bar
tree B:
  mv bar foo
merge A and B
zparent loopz<Conflict moving %(path)s into %(conflict_path)s. %(action)s.c��grrPres  rrk�ParentLoop.action_take_this���rc���UR5nURUR5nURU5nURUR5nURU5nUR[RUR5Xe5 UR[RUR5XC5 UR5 SSS5 g!,(df   g=fr)rqr�rr�r�r�r�r�rrWr�)rr_rt�p_tidr��cp_tid�cparent_tids       rrn�ParentLoop.action_take_others���
�^�^�
���'�'����5�E��+�+�E�2�J��(�(��)>�)>�?�F��,�,�V�4�K��N�N�7�+�+�D�I�I�6��L��N�N�7�+�+�D�,>�,>�?��S��H�H�J��
�
�s�CC!�!
C/rPNr:rPrrr<r<s��	��J�
K�F�
�rr<c�,�\rSrSrSrSrSrSrSrSr	g)	�UnversionedParenti&z�An attempt to version a file whose parent directory is not versioned.
Typically, the result of a merge where one tree unversioned the directory
and the other added a versioned file to it.
zunversioned parentzTConflict because %(path)s is not versioned, but has versioned children.  %(action)s.c��grrPres  rrk�"UnversionedParent.action_take_this6���rc��grrPres  rrn�#UnversionedParent.action_take_other9rIrrPNr:rPrrrFrF&s"���
&�J�	"��
�
rrFc�,�\rSrSrSrSrSrSrSrSr	g)	�
MissingParenti=z�An attempt to add files to a directory that is not present.
Typically, the result of a merge where THIS deleted the directory and
the OTHER added a file to it.
See also: DeletingParent (same situation, THIS and OTHER reversed).
zmissing parentz/Conflict adding files to %(path)s.  %(action)s.c�<�URUR/SSS9 gr/r7res  rrk�MissingParent.action_take_thisHr9rc��grrPres  rrn�MissingParent.action_take_otherKr?rrPNr:rPrrrMrM=s���"�J�
>�F�?�
rrMc�,�\rSrSrSrSrSrSrSrSr	g)	�DeletingParentiPz�An attempt to add files to a directory that is not present.
Typically, the result of a merge where one OTHER deleted the directory and
the THIS added a file to it.
zdeleting parentzEConflict: can't delete %(path)s because it is not empty.  %(action)s.c��grrPres  rrk�DeletingParent.action_take_this]r?rc�<�URUR/SSS9 gr/r7res  rrn� DeletingParent.action_take_otherar9rrPNr:rPrrrSrSPs���
#�J�
T�F�

�?rrSc�,�\rSrSrSrSrSrSrSrSr	g)	�NonDirectoryParentiez{An attempt to add files to a directory that is not a directory or
an attempt to change the kind of a directory with files.
znon-directory parentzHConflict: %(path)s is not a directory, but has files in it.  %(action)s.c��URRS5(aGURS[S5*nURUR/SSS9 UR	U5 g[UR5e�Nz.newTFr0)r�endswith�lenr3r"r]rk�rr_rWs   rrk�#NonDirectoryParent.action_take_thispsc���9�9���f�%�%� �I�I�&6�#�f�+��7�M��K�K�����4�E�K�B��H�H�]�#�%�d�&;�&;�<�<rc��URRS5(aHURS[S5*nURU/SSS9 UR	URU5 g[UR5er[)rr\r]r3r4r]rnr^s   rrn�$NonDirectoryParent.action_take_otheryse���9�9���f�%�%� �I�I�&6�#�f�+��7�M��K�K���t��K�F��O�O�D�I�I�}�5�%�d�&<�&<�=�=rrPNr:rPrrrYrYes���(�J�
W�F�=�>rrYc�<�UHnU[UR'M g)z8Register a Conflict subclass for serialization purposes.N)rQr!)�conflict_types�
conflict_types  r�register_typesre�s��(�
�*7��m�&�&�'�(r)r�rr�globals�rr�r�r�BaseConflictr�BaseConflictListr	r�r�r�r�rr"r*r,r<rFrMrSrYrQrerPrr�<module>rjs&��"
�	�%���I���+�0�8��0��]/�|�]/�@@1�#�@1�FhU�8�hU�V62�|�62�v=3�8�=3�@�h��0!�/�!�HN�%�N�?�(�?��$��>
��
�.
�O�
�&?�_�?�*>��>�<	��8������������r

Youez - 2016 - github.com/yon3zu
LinuXploit