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__/commit.cpython-313.pyc
�

p��g����SSKJr SSKrSSKJrJrJrJr SSK	J
r
 SSKJrJrJ
r
 SSKJr SSKJrJrJr SS	KJrJrJr SS
KJr "SS\5r"S
S\5rSr"SS5r"SS\5r"SS5rg)�)�	ExitStackN�)�debug�errors�trace�ui)�Branch)�BzrError�ConflictsInTree�StrictCommitFailed)�gettext)�get_user_encoding�
is_inside_any�minimum_path_selection)�is_quiet�mutter�note)�unescape_for_displayc��\rSrSrSrSrg)�PointlessCommit�DzNo changes to commit�N)�__name__�
__module__�__qualname__�__firstlineno__�_fmt�__static_attributes__r��//usr/lib/python3/dist-packages/breezy/commit.pyrrDs��!�Drrc��\rSrSrSrSrSrg)�CannotCommitSelectedFileMerge�HzHSelected-file commit of merges is not supported yet: files %(files_str)sc�P�SRU5n[R"XUS9 g)Nz, )�files�	files_str)�joinr
�__init__)�selfr%r&s   r r(�&CannotCommitSelectedFileMerge.__init__Ks ���I�I�e�$�	����$�y�ArrN)rrrrrr(rrrr r"r"Hs
��U�D�Brr"c#�&# �UH�nURSSL=(a [XRS5nURSSL=(a [XRS5nU(a	U(aMsU(dU(aM�Uv� M� g7f)z�Filter exclude filenames.

:param iter_changes: iter_changes function
:param exclude: List of paths to exclude
:return: iter_changes function
rNr)�pathr)�iter_changes�exclude�change�new_excluded�old_excludeds     r �filter_excludedr2Ps|������{�{�1�~�T�1�
�m��[�[��^�7
���{�{�1�~�T�1�
�m��[�[��^�7
���L���<����!�s�BBc�B�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�NullCommitReporter�jz!I report on progress of a commit.c��g�Nr)r)�revno�revid�locations    r �started�NullCommitReporter.startedm���rc��gr7r�r)r/r,s   r �snapshot_change�"NullCommitReporter.snapshot_changepr=rc��gr7r�r)r8�rev_ids   r �	completed�NullCommitReporter.completedsr=rc��gr7r�r)r,s  r �deleted�NullCommitReporter.deletedvr=rc��gr7rrHs  r �missing�NullCommitReporter.missingyr=rc��gr7r�r)r/�old_path�new_paths    r �renamed�NullCommitReporter.renamed|r=rc��g�NFr�r)s r �
is_verbose�NullCommitReporter.is_verboses��rrN)
rrrr�__doc__r;r@rErIrLrRrWrrrr r4r4js(��+�
�
�
�
�
�
�rr4c�D�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�ReportCommitToLog�c��[U/UQ76 g)zBOutput a message.

Subclasses may choose to override this method.
N)r)r)�format�argss   r �_note�ReportCommitToLog._note�s��
	
�V��d�rc�j�US:XaU[S5[S54;agURSX5 g)N��added�modifiedz%s %s)r
r`r?s   r r@�!ReportCommitToLog.snapshot_change�s0���2�:�&�W�W�%5�w�z�7J�$K�K���
�
�7�F�)rc�N�UR[S5[US55 g)NzCommitting to: %szutf-8)r`r
r)r)r8rDr:s    r r;�ReportCommitToLog.started�s!���
�
��'�(�*>�x��*Q�	
rc��Ub(UR[S5U5 [SX!5 gUR[S5U5 g)NzCommitted revision %d.zCommitted revid %s as revno %d.zCommitted revid %s.)r`r
rrCs   r rE�ReportCommitToLog.completed�s=�����J�J�w�7�8�%�@�
�4�f�D��J�J�w�4�5�v�>rc�:�UR[S5U5 g)Nz
deleted %s�r`r
rHs  r rI�ReportCommitToLog.deleted�����
�
�7�<�(�$�/rc�:�UR[S5U5 g)Nz
missing %srlrHs  r rL�ReportCommitToLog.missing�rnrc�*�URSXU5 g)Nz%s %s => %s)r`rOs    r rR�ReportCommitToLog.renamed�s���
�
�=�&�H�=rc��g)NTrrVs r rW�ReportCommitToLog.is_verbose�s��rrN)
rrrrr`r@r;rErIrLrRrWrrrr r[r[�s*���*�

�

?�0�0�>�rr[c���\rSrSrSrSSjr\SSj5rSSjrSr	Sr
S	rSS
jrSr
SrS
rSrSrSrSrSrSSjrSrSrSrg)�Commit�a�Task of committing a new revision.

This is a MethodObject: it accumulates state as the commit is
prepared, and then it is discarded.  It doesn't represent
historical revisions, just the act of recording a new one.

        missing_ids
        Modified to hold a list of files that have been deleted from
        the working directory; these should be removed from the
        working inventory.
Nc��XlX lg)z^Create a Commit object.

:param reporter: the default reporter to use or None to decide later
N)�reporter�config_stack)r)ryrzs   r r(�Commit.__init__�s��
!�
�(�rc�6�Uc0nUc/nSU;a9URRR(aURX45US'UbLSU;dSU;a[	S5eU(a.UHnSU;dM[	S5e SRU5US'U$)Nzbranch-nick�author�authorszauthor property given twice�
z1\n is not a valid character in an author identity)�
repository�_format�supports_storing_branch_nick�	_get_nick�AssertionErrorr')�revprops�branchr~�local�possible_master_transports�
individuals      r �update_revprops�Commit.update_revprops�s������H�%�-�)+�&���)��!�!�)�)�F�F�&,�&6�&6��'�H�]�#����8�#�y�H�'<�$�%B�C�C��")�J��z�)�,�P���#*�
'+�i�i��&8���#��rc�B^�[5nU
=(d 0UlU=(d URUl[S5 Uc[	S5eX�lUR
RUl[UR
SS5"5(a>URRR5(d[R"5eUcCTb5[T[5(aTR[55mU4SjnO[	S5eSUlSUlUb[%['U55UlO/UlX�lSUlUUlSUlUb[%['U55UlOSUlXplX�lX lX0lX@lX�lX�l URCUR
RE55 UR
RG5Ul$[JRLRO5Ul(URSURPRT5 UR
RW5Ul,UR
R[5Ul-URCURZR]55 [_UR
Ra55S	:�a[beUReUU5 URcUR
Rg5UlURi5unnnU
bX�l5O"URjcURm5Ul5S
Ul7S	Ul8SUl9UR (aU=RrS-
sl9SURPl:SURPl;SURPl<S
URPl=S
URPl>[_URH5S:�a"UR2b[UR25e[_URH5S:�a&UR((a[UR(5eUR�SS
S9 UUlAURR�URHURUUUURUUS9UlCUR�R�(a6UR (a%UR�R�5 [�S5eUR (aUR,R�nOURR�nURjR�UUR0U5 UR�5 UR�5 UR�S5 UR�R�5 U"U5mTUlLUR�R�UR�5UlUR�UUU5 UR
R�UR�5 UR�S5 UR
R�UR0UR�R�55 URjR�UUR05 UR�UU5 UR0sSSS5 $![�a< [S5 [�R�"5 UR�R�5 ef=f!,(df   g=f)a�Commit working copy as a new revision.

:param message: the commit message (it or message_callback is required)
:param message_callback: A callback: message =
    message_callback(cmt_obj)

:param timestamp: if not None, seconds-since-epoch for a
    postdated/predated commit.

:param specific_files: If not None, commit only those files. An empty
    list means 'commit no files'.

:param rev_id: If set, use this as the new revision id.
    Useful for test or import commands that need to tightly
    control what revisions are assigned.  If you duplicate
    a revision id that exists elsewhere it is your own fault.
    If null (default), a time/random revision id is generated.

:param allow_pointless: If true (default), commit even if nothing
    has changed and no merges are recorded.

:param strict: If true, don't allow a commit if the working tree
    contains unknown files.

:param revprops: Properties for new revision
:param local: Perform a local only commit.
:param reporter: the reporter to use or None for the default
:param verbose: if True and the reporter is not None, report everything
:param recursive: If set to 'down', commit in any subtrees that have
    pending changes of any sort during this commit.
:param exclude: None or a list of relative paths to exclude from the
    commit. Pending changes to excluded files will be ignored by the
    commit.
:param lossy: When committing to a foreign VCS, ignore any
    data that can not be natively represented.
zpreparing to commitNz*working_tree must be passed into commit().�requires_rich_rootc��grUrrrr �<lambda>�Commit.commit.<locals>.<lambda>$s��rc�>�T$r7r)�x�messages �r �message_callback�'Commit.commit.<locals>.message_callback,s���&�rzKThe message or message_callback keyword parameter is required for commit().Frrc��TrzCollecting changes)�counter��lossyzGbound branches not supported for commit builders that update the branchzSaving data locallyz1aborting commit write group because of exception:zUpdating the working tree)Xrr�rzrr
�	work_treer��getattrr��supports_rich_rootr�RootNotRich�
isinstance�bytes�decoder�bound_branch�any_entries_deleted�sortedrr.r��
master_branch�	recursiverD�specific_files�allow_pointlessr��	timestamp�timezone�	committer�strict�verbose�
enter_context�
lock_write�get_parent_ids�parentsr�
ui_factory�nested_progress_bar�pb�callback�finished�
last_revision�basis_revid�
basis_tree�	lock_read�len�	conflictsr�_check_bound_branch�get_config_stack�_check_out_of_date_treery�_select_reporter�
pb_stage_name�pb_stage_count�pb_stage_total�show_pct�show_spinner�show_eta�
show_count�show_barr"�_set_progress_stage�_lossy�get_commit_builder�builder�updates_branch�abortr��baser;�_update_builder_with_changes�_check_pointless�finish_inventoryr��commit�	Exceptionr�log_exception_quietly�_update_branches�	unversion�
deleted_paths�update_basis_by_delta�get_basis_deltarE�_process_post_hooks)r)r�r�r�r�r�rDr�r�r�r��working_treer�ry�configr�r�r.r�r��stack�	old_revno�	old_revid�	new_revno�master_locations `                       r r��
Commit.commit�s����t�[�E�$�N��D�M� &� ;�$�*;�*;�D���(�)��#��K�L�L�!-��"�n�n�3�3����4�>�>�+?��O�Q�Q��;�;�1�1�D�D�F�F�$�0�0�2�2��'��&�!�'�5�1�1�")�.�.�1B�1D�"E��'�#�?���
!%�D��',�D�$��"�%�&<�W�&E�F���!����J�!%�D��&�D�N��D�K��)�&,�-C�N�-S�&T��#�&*��#�#2� �$4�!�&�N�$�M�&�N� �K�"�L������� 9� 9� ;�<��>�>�8�8�:�D�L��m�m�7�7�9�D�G��N�N�4�7�7�+�+�,�#�~�~�;�;�=�D��"�n�n�7�7�9�D�O������� 9� 9� ;�<��4�>�>�+�+�-�.��2�%�%�
�$�$�U�,F�G�� � �(�$(�N�N�$C�$C�$E��!�/3�.J�.J�.L�+�I�y�)��#� (�
����&� $� 5� 5� 7��
�"$�D��"#�D��"#�D��� � ��#�#�q�(�#�$�D�G�G��#(�D�G�G� �$�D�G�G��!%�D�G�G��#�D�G�G���4�<�<� �1�$��)<�)<�)H�3�D�4G�4G�H�H��4�<�<� �1�$����3�D�L�L�A�A�
�$�$�%9�4�$�H��D�K��;�;�9�9�����!�!�����
�
���:�	�D�L��|�|�*�*�t�/@�/@����"�"�$�$�-���

��$�$�&*�&8�&8�&=�&=�O�&*�k�k�&6�&6�O��
�
�%�%�i����o�N��1�1�3��%�%�'��(�(�)>�?����-�-�/�+�4�0��&���#�l�l�1�1�$�,�,�?���
�!�!�)�Y�	�B�

�N�N�$�$�T�%7�%7�8��$�$�%@�A��N�N�0�0����T�\�\�9�9�;�
�
�M�M�#�#�I�t�{�{�;��$�$�Y�	�:��;�;�Q�[��l�
��J�K��+�+�-����"�"�$��	
��m�[�s'�S=\�
C)[�3C
\�A\
�
\�
\c���URR(d�URX5 UR(a�UR	S5 UR
R
URX0RURS9uo0lUR(a0URRUR
UR5 UcSnURRX0R5 OURX5 UR(a�UR	S5 URRRUR
R5upEU(aCUVVs/sHun nSU-PM nnn[[!S5SR#U54-5 ggg![a URRX5 ef=fs snnf)	aFUpdate the master and local branch to the new revision.

This will try to make sure that the master branch is updated
before the local branch.

:param old_revno: Revision number of master branch before the
    commit
:param old_revid: Tip of master branch before the commit
:param new_revno: Revision number of the new commit
zUploading data to master branchr�NrzMerging tags to master branchz    z$Conflicting tags in bound branch:
%sr)r�r��_process_pre_hooksr�r�r��"import_last_revision_info_and_tagsr�rDr��fetch�set_last_revision_info�
BaseException�tags�merge_torr
r')	r)r�r�r��tag_updates�
tag_conflicts�name�_�
warning_liness	         r r��Commit._update_branches�s����|�|�*�*��#�#�I�9�� � ��(�(�)J�K��&�&�I�I����Y���4�;�;�J��)��K�
�;�;��K�K�%�%�d�&8�&8�$�+�+�F�� ��	��K�K�.�.�y�+�+�F�
��'�'�	�=�����$�$�%D�E�)-���)9�)9�)B�)B��"�"�'�'�*�&�K��AN� O��:�4��A��$���
� O���C�D��y�y��/�1�2�����!�
����2�2�9�H��	
��!Ps�<F6�6G �6'Gc�H�[5(a
[5$[5$)z!Select the CommitReporter to use.)rr4r[rVs r r��Commit._select_reporter�s���:�:�%�'�'� �"�"rc��UR(ag[UR5S:�agURR	5(ag[5e)Nr)r�r�r�r��any_changesrrVs r r��Commit._check_pointlesssA�������t�|�|��q� ���<�<�#�#�%�%����rc��UR(a4URR5(d[R"5eUR(d URRU5UlUR(dURUlgURR5nU(a,[R"URURU5eURR5nURR5nXT:wa+[R"URUR5eURUl
URURR55 g)z�Check to see if the local branch is bound.

If it is bound, then most of the commit will actually be
done using the remote branch as the target branch.
Only at the end will the local branch be updated.
N)
r�r��get_bound_locationr�LocalRequiresBoundBranch�get_master_branchr��CommitToDoubleBoundBranchr��BoundBranchOutOfDater�r�r�)r)r�r��master_bound_location�master_revid�local_revids      r r��Commit._check_bound_branch
s���:�:�d�k�k�<�<�>�>��1�1�3�3��z�z�!%���!>�!>�*�"�D���!�!�!%���D���!%� 2� 2� E� E� G�� ��2�2����T�/�/�1F��
��)�)�7�7�9���k�k�/�/�1���&��-�-�d�k�k�4�;M�;M�N�N�!�K�K���
���D�.�.�9�9�;�<rc�0�URR5SnURRR5(d URRS5(aURR5up#OURR5nSnX1:wa>U[RR
:wa [R""UR5eUb0URR$R'U5(aUS-nOSnX#U4$![a [RR
nGN&f=f![Ra8 URR5nURR!U5nN�f=f)zyCheck that the working tree is up to date.

:return: old_revision_number, old_revision_id, new_revision_number
    tuple
r�calculate_revnosNr)r�r��
IndexError�breezy�revision�
NULL_REVISIONr�r��stores_revnorz�get�last_revision_infor�UnsupportedOperationr�r��revision_id_to_revno�
OutOfDateTreer��has_revision)r)�first_tree_parentr��master_lastr�s     r r��Commit._check_out_of_date_tree5sc��	>� $��� =� =� ?�� B�����%�%�2�2�4�4��8I�8I�8M�8M��9
�9
�
J�)-�);�);�)N�)N�)P�&�	�;�
�,�,�:�:�<�K��I��+��f�o�o�;�;�;��*�*�4�>�>�:�:�� �T�[�[�%;�%;�%H�%H��&
�&
�"�A�
�I��I��y�0�0��7�	>�
!'��� =� =��	>���.�.�
J�"�0�0�>�>�@�� �K�K�<�<�[�I�	�
J�s$�D�)E	�$E�E�	A	F�Fc�J�URS5 URSX5 g)z(Process any registered pre commit hooks.zRunning pre_commit hooks�
pre_commitN)r��_process_hooks)r)r�r�s   r r��Commit._process_pre_hooksZs!��� � �!;�<����L�)�?rc��URS5 URRS5nUbEURS5nUH.n[	US-UR
[URS.5 M0 URSX5 g)z)Process any registered post commit hooks.zRunning post_commit hooks�post_commitN� z(branch, rev_id))r�rrD)	r�rzr�split�evalr�rrDr)r)r�r�r�hooks�hooks      r r��Commit._process_post_hooks_s���	
� � �!<�=��'�'�+�+�M�:���"��%�%�c�*�E�����-�-�#�{�{�f����T���	
���M�9�@rc��[RU(dgUR(dURnSnOURnURnUR
(aUR
SnO[RRnUS:Xa4URR5nURURSS9n[RUH�n	SRU[RRU	55UlUR!5 S["R$;a['SU	5 US:XaU	"UUUUUUR(5 M�US:XdM�U	"UUUUUUR(WW5 M� g)	NrrT)�include_rootzRunning {} hooks [{}]rzInvoking commit hook: %rr)r	rr�r�r�r�rrrr��
revision_tree�changes_fromr�r^�
get_hook_namer��_emit_progressr�debug_flagsrrD)
r)�	hook_namer�r��hook_master�
hook_localr��future_tree�
tree_deltars
          r r�Commit._process_hooksqsO���|�|�I�&��� � ��+�+�K��J��,�,�K����J��<�<����Q��I����5�5�I���$��,�,�4�4�6�K�$�1�1�$�/�/�PT�1�U�J��L�L��+�D�"9�!?�!?�����*�*�4�0�"�D��
���!��%�+�+�+��1�4�8��M�)��������K�K�
��l�*��������K�K���	�/,rc��URn[SU5 UR5 URR	UR
US9nUR(a[X R5nURU5nURRURURU5H up4URRX45 M" g)z?Update the commit builder with the data about what has changed.z)Selecting files for commit with filter %r)r�N)
r�r�
_check_strictr�r-r�r.r2�_filter_iter_changesr��record_iter_changesr��_observed_sha1)r)r�r-r,�fs_hashs     r r��#Commit._update_builder_with_changes�s����,�,���:�N�K������~�~�2�2��O�O�N�3�
���<�<�*�<���F�L��0�0��>��!�\�\�=�=��N�N�D�,�,�l�
�M�D�
�N�N�)�)�$�8�
rc#��# �URnUR5n/nUGHEnU(a-URSnURSnURSnURSn	URSnU	c�U(a�U(aURW5 URSS:XaSURR5(d4[R"SRURS55 M�URURS5 UR5nURSnSnO4U	S:Xa.URS:XaURURS5 URS(dURS(a�Uv� U(a�WcURW5 O�WcUR![#S	5U5 O|Xg:waUR%[#S
5Xg5 O[U(d9URR&R(R*R,(aUR![#S5U5 UR/5 GMH X@lg7f)aProcess iter_changes.

This method reports on the changes in iter_changes to the user, and
converts 'missing' entries in the iter_changes iterator to 'deleted'
entries. 'missing' entries have their

:param iter_changes: An iter_changes to process.
:return: A generator of changes.
rrN�symlinkz?Ignoring "{}" as symlinks are not supported on this filesystem.Fztree-reference�downrdrRre)ryrWr,�	versioned�kindrLr��supports_symlinksr�warningr^�append�discard_newr��_commit_nested_treerIr@r
rRr�r�r��rich_root_data�_next_progress_entryr�)
r)r-ry�report_changesr�r/rPrQr4r5s
          r r,�Commit._filter_iter_changes�s�����=�=��!�,�,�.���
�"�F��!�;�;�q�>��!�;�;�q�>��"�,�,�Q�/�	��;�;�q�>�D��(�(��+�I��|�	�!��$�$�X�.��K�K��N�i�/� �N�N�<�<�>�>��M�M�8�8>��v�{�{�1�~�8N����$�$�V�[�[��^�4��+�+�-��!�;�;�q�>��!�	��)�)��>�>�V�+��,�,�V�[�[��^�<�����"�f�&6�&6�q�&9���!��'� �(�(��2�!�)� �0�0���1A�8�L�!�-� �(�(���);�X�P�%�#�~�~�4�4�?�?�G�G�V�V�%�4�4�W�Z�5H�(�S��%�%�'�[#�^+��s�I2I4c�z�UR(a*URR5Hn[5e ggr7)r�r��unknownsr)r)�_unknowns  r r+�Commit._check_strict�s0���;�;� �N�N�3�3�5��(�*�*�6�rc��URRU5nURRR	URRR5(a/URRRURlURSURURURURURURURURURURUR S9$!["a URR%U5s$f=f)zCommit a nested tree.N)r�r�r�r�r�r�r�r�r�r�r�ry)r��get_nested_treer�r��has_same_locationr�r�r�r�r�r�r�r�r�r�r�ryr�get_reference_revision)r)r,�sub_trees   r r:�Commit._commit_nested_trees����>�>�1�1�$�7���?�?�%�%�7�7��N�N�!�!�,�,�
�
�*.���)>�)>�)I�)I�H�O�O�&�	?��?�?������.�.�!%�!6�!6��.�.�����.�.� $� 4� 4��{�{�����j�j����#�
�

���	?��>�>�8�8��>�>�	?�s�BD�%E�Ec��XlU=RS-
slU(aSUlOSUlUR5 g)z>Set the progress stage and emit an update to the progress bar.rrN)r�r��pb_entries_countr")r)r�r�s   r r��Commit._set_progress_stage!s8��!�����q� ���$%�D�!�$(�D�!����rc�N�U=RS-
slUR5 g)zAEmit an update to the progress bar and increment the entry count.rN)rJr"rVs r r<�Commit._next_progress_entry+s������"�����rc��URb0[S5RURUR5nO[S5UR4-nURRXRUR5 g)Nz{0} [{1}] - Stagez
%s - Stage)rJr
r^r�r��updater�r�)r)�texts  r r"�Commit._emit_progress0sm��� � �,��.�/�6�6��"�"�D�$9�$9��D��<�(�D�,>�,>�+@�@�D������t�0�0�$�2E�2E�Fr) r�r�r�r�r�r�r�r�r�rzr�r.r�r�r�r�r�r�rJr�r�r�r�ryrDr�r�r�r�r�r�r�)NN)NFN)NNNNNNTFFNNFNNNr3NNFr7)F)rrrrrYr(�staticmethodr�r�r�r�r�r�r�r�r�rr�r,r+r:r�r<r"rrrr rvrv�s���
�)��PT����:�����������������#'��)b�H5�n#� �)=�V#1�J@�
A�$7�r9�"<+�|+�?�>��
Grrv)�
contextlibr�
breezy.configrrcrrrrr�r	r
rr�i18nr
�osutilsrrrrrr�urlutilsrrr"r2r4r[rvrrr �<module>rXsz��f!��&�&��A�A����
*�)�*�"�h�"�B�H�B��4��2(�*�(�VI
G�I
Gr

Youez - 2016 - github.com/yon3zu
LinuXploit