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

p��gC����SrSSKJr SSKJrJrJrJr "SS\R5r	"SS\R5r
"S	S
\R5r"SS\R5r"S
S\R5r
"SS\R5r"SS\R5r"SS\R5r"SS\R5r"SS\R5r"SS\R5r"SS5r"SS5r"SS 5rS!rS-S#jrS$\4S%jrS-S&\\\4S'jjrS(rS"S).S*\S+S"4S,jjr\R@\\\4"5r!g").z&Helper functions for proposing merges.�)�Optional�)�errors�hooks�registry�urlutilsc��\rSrSrSrSrSrg)�
NoSuchProject�z$Project does not exist: %(project)s.c�N�[RRU5 Xlg�N)r�BzrError�__init__�project)�selfrs  �./usr/lib/python3/dist-packages/breezy/forge.pyr�NoSuchProject.__init__s����� � ��&���)rN��__name__�
__module__�__qualname__�__firstlineno__�_fmtr�__static_attributes__�rrr
r
s��1�D�rr
c�"�\rSrSrSrSSjrSrg)�MergeProposalExists� z)A merge proposal already exists: %(url)s.Nc�Z�[RRU5 XlX lgr
)rrr�url�existing_proposal)rr!r"s   rr�MergeProposalExists.__init__#s����� � ��&���!2�r)r"r!r
rrrrrr s��6�D�3rrc��\rSrSrSrSrSrg)�UnsupportedForge�)z"No supported forge for %(branch)s.c�N�[RRU5 Xlgr
)rrr�branch�rr(s  rr�UnsupportedForge.__init__,s����� � ��&��r)r(Nrrrrr%r%)s��/�D�rr%c��\rSrSrSrSrg)�ReopenFailed�1z/Reopening the merge proposal failed: %(error)s.rN�rrrrrrrrrr,r,1s��<�Drr,c��\rSrSrSrSrg)�TitleUnsupported�5z3The merge proposal %(mp)s does not support a title.rNr.rrrr0r05s��@�Drr0c��\rSrSrSrSrg)�AutoMergeUnsupported�9z5The merge proposal %(mp)s does not support automerge.rNr.rrrr3r39s��B�Drr3c��\rSrSrSrSrSrg)�ProposeMergeHooks�=z)Hooks for proposing a merge on Launchpad.c��[RRU[S5 UR	SSS5 UR	SSS5 g)NzProposer.hooks�get_prerequisitez6Return the prerequisite branch for proposing as merge.)�r�merge_proposal_bodyz6Return an initial body for the merge proposal message.)r�Hooksrr�add_hook�rs rr�ProposeMergeHooks.__init__@sE��
�����T�8�-=�>��
�
��D��	
�
	
�
�
�!�D��	
rrN�rrrr�__doc__rrrrrr6r6=s
��3�
rr6c�"�\rSrSrSrSrSrSrg)�LabelsUnsupported�Nz#Labels not supported by this forge.z&Labels are not supported by %(forge)r.c�N�[RRU5 Xlgr
�rrr�forge�rrGs  rr�LabelsUnsupported.__init__S������ � ��&��
r�rGN�rrrrrArrrrrrrCrCNs��-�3�D�rrCc��\rSrSrSrSrSrg)�PrerequisiteBranchUnsupported�Xz0Prerequisite branch not supported by this forge.c�N�[RRU5 Xlgr
rFrHs  rr�&PrerequisiteBranchUnsupported.__init__[rJrrKNr@rrrrNrNXs
��:�rrNc�"�\rSrSrSrSrSrSrg)�ForgeLoginRequired�`z(Action requires forge login credentials.z7Action requires credentials for hosting site %(forge)r.c�N�[RRU5 Xlgr
rFrHs  rr�ForgeLoginRequired.__init__erJrrKNrLrrrrSrS`s��2�D�D�rrSc�"�\rSrSrSrSrSrSrg)�SourceNotDerivedFromTarget�jz0Source branch is not derived from target branch.zCSource %(source_branch)r not derived from target %(target_branch)r.c�@�[RRXUS9 g)N��
source_branch�
target_branch)rrr�rr\r]s   rr�#SourceNotDerivedFromTarget.__init__os����� � ��]�	!�	
rrNrLrrrrXrXjs��:�P�D�
rrXc���\rSrSr%Sr\\S'S SjrSrSr	Sr
S	rS
rSr
SrS
rSrSS.SjrSrSS.SjrSrSrSrSrSrSrS!SjrSrSrSrSrSrSr g)"�
MergeProposal�uz9A merge proposal.

:ivar url: URL for the merge proposal
�supports_auto_mergeNc��Xlgr
�r!�rr!s  rr�MergeProposal.__init__}s���rc��UR$r
rer>s r�__str__�MergeProposal.__str__�s���x�x�rc�b�SRURRUR5$)Nz
<{}({!r})>)�format�	__class__rr!r>s r�__repr__�MergeProposal.__repr__�s#���"�"�4�>�>�#:�#:�D�H�H�E�Erc�,�[UR5er
��NotImplementedError�get_web_urlr>s rrs�MergeProposal.get_web_url�s��!�$�"2�"2�3�3rc�,�[UR5e)z*Get the description of the merge proposal.)rr�get_descriptionr>s rrv�MergeProposal.get_description����!�$�"6�"6�7�7rc�,�[UR5e)z*Set the description of the merge proposal.)rr�set_description)r�descriptions  rrz�MergeProposal.set_description�rxrc�,�[UR5e�zGet the title.)rr�	get_titler>s rr�MergeProposal.get_title����!�$�.�.�1�1rc�,�[UR5er~)rr�	set_title)r�titles  rr��MergeProposal.set_title�r�rc�,�[UR5e)z Get the proposed commit message.)rr�get_commit_messager>s rr�� MergeProposal.get_commit_message����!�$�"9�"9�:�:rc�,�[UR5e)zSet the propose commit message.)rr�set_commit_message)r�commit_messages  rr�� MergeProposal.set_commit_message�r�r)�preferred_schemesc�,�[UR5e)zReturn the source branch.)rr�get_source_branch_url�rr�s  rr��#MergeProposal.get_source_branch_url����!�$�"<�"<�=�=rc�,�[UR5e)z1Return the latest revision for the source branch.)rr�get_source_revisionr>s rr��!MergeProposal.get_source_revision�s��!�$�":�":�;�;rc�,�[UR5e)zReturn the target branch.)rr�get_target_branch_urlr�s  rr��#MergeProposal.get_target_branch_url�r�rc�,�[UR5e)zSet the target branch name.)rr�set_target_branch_namer>s rr��$MergeProposal.set_target_branch_name�s��!�$�"=�"=�>�>rc�,�[UR5er
)rr�get_source_projectr>s rr�� MergeProposal.get_source_project����!�$�"9�"9�:�:rc�,�[UR5er
)rr�get_target_projectr>s rr�� MergeProposal.get_target_project�r�rc�,�[UR5e)z.Close the merge proposal (without merging it).)rr�closer>s rr��MergeProposal.close����!�$�*�*�-�-rc�,�[UR5e)z2Check whether this merge proposal has been merged.)rr�	is_mergedr>s rr��MergeProposal.is_merged�r�rc�,�[UR5e)zbCheck whether this merge proposal is closed.

This can either mean that it is merged or rejected.
)rr�	is_closedr>s rr��MergeProposal.is_closed�s��
"�$�.�.�1�1rc�,�[UR5e)zMerge this merge proposal.)rr�merge)rr��autos   rr��MergeProposal.merge�r�rc�,�[UR5e)zZCan this merge proposal be merged?

The answer to this can be no if e.g. it has conflics.
)rr�
can_be_mergedr>s rr��MergeProposal.can_be_merged�s��
"�$�"4�"4�5�5rc�,�[UR5e)z+If this proposal was merged, who merged it.)rr�
get_merged_byr>s rr��MergeProposal.get_merged_by����!�$�"4�"4�5�5rc�,�[UR5e)z0If this proposal was merged, when it was merged.)rr�
get_merged_atr>s rr��MergeProposal.get_merged_at�r�rc�,�[UR5e)zIPost a comment on the merge proposal.

Args:
  body: Body of the comment
)rr�post_comment)r�bodys  rr��MergeProposal.post_comment�s��"�$�"3�"3�4�4rc�,�[UR5e)zReopen this merge proposal.)rr�reopenr>s rr��MergeProposal.reopen�s��!�$�+�+�.�.rrer
)NF)!rrrrrA�bool�__annotations__rrirnrsrvrzrr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrraraus����
����F�4�8�8�2�2�;�;�:>�>�<�:>�>�?�;�;�.�2�2�.�6�6�6�5�/rrac�`�\rSrSrSr\"5rSrSrSr	S
S\
\4SjjrS	r
g)�MergeProposalBuilder��zqMerge proposal creator.

:param source_branch: Branch to propose for merging
:param target_branch: Target branch
c��XlX lgr
r[r^s   rr�MergeProposalBuilder.__init__�s��*��*�rc�,�[UR5e)zMGet a body for the proposal for the user to modify.

:return: a str or None.
)rr�get_initial_bodyr>s rr��%MergeProposalBuilder.get_initial_body����
"�$�"7�"7�8�8rc�,�[UR5e)z5Determine the initial comment for the merge proposal.)rr�get_infotextr>s rr��!MergeProposalBuilder.get_infotext����!�$�"3�"3�4�4rN�delete_source_after_mergec
�,�[UR5e)a`Create a proposal to merge a branch for merging.

Args:
  description: Description for the merge proposal
  reviewers: Optional list of people to ask reviews from
  labels: Labels to attach to the proposal
  prerequisite_branch: Optional prerequisite branch
  commit_message: Optional commit message
  work_in_progress:
    Whether this merge proposal is still a work-in-progress
  allow_collaboration:
    Whether to allow changes to the branch from the target branch
    maintainer(s)
  delete_after_merge: Whether to delete the source branch after it
    has been merged
Returns: A `MergeProposal` object
)rr�create_proposal)
rr{r��	reviewers�labels�prerequisite_branchr��work_in_progress�allow_collaborationr�s
          rr��$MergeProposalBuilder.create_proposal�s��:"�$�"6�"6�7�7rr[)NNNNNFFN)rrrrrAr6rrr�r�rr�r�rrrrr�r��sR���
��E�+�9�5���� ���!�48�8�$,�D�>�8�8rr�c�,�\rSrSr%Sr\\S'\\S'\S5r\\S'\	\S'\	\S'S	r
\\S
'SSjrS S
jrSr
SrSrS!SjrSrSr\S"Sj5r\S5r\S"Sj5rS#SjrS"SjrSrS"Sjr\S5rSrSrSrg)$�ForgeizA hosting site manager.�supports_merge_proposal_labels�supports_merge_proposal_titlec�`�SR[U5RUR5$)zName of this instance.z{} at {})rl�typer�base_urlr>s r�name�
Forge.name's%��� � ��d��!4�!4�d�m�m�D�Dr�&supports_merge_proposal_commit_messager��!merge_proposal_description_formatF�supports_allow_collaborationNc
�,�[UR5e)aPublish a branch to the site, derived from base_branch.

:param base_branch: branch to derive the new branch from
:param new_branch: branch to publish
:return: resulting branch, public URL
:raise ForgeLoginRequired: Action requires a forge login, but none is
    known.
)rr�publish_derived)
r�
new_branch�base_branchr�r�owner�revision_id�	overwrite�allow_lossy�tag_selectors
          rr��Forge.publish_derived;s��("�$�"6�"6�7�7rc�,�[UR5e)z Get a derived branch ('a fork').)rr�get_derived_branch)rr�r�rr�r�s      rr��Forge.get_derived_branchQs��"�$�"9�"9�:�:rc�,�[UR5e)zGet the push URL for a branch.)rr�get_push_urlr)s  rr��Forge.get_push_urlWr�rc�,�[UR5e)z%Get the web viewing URL for a branch.rqr)s  rrs�Forge.get_web_url[s��!�$�"2�"2�3�3rc�,�[UR5e)z�Get a merge proposal creator.

:note: source_branch does not have to be hosted by the forge.

:param source_branch: Source branch
:param target_branch: Target branch
:return: A MergeProposalBuilder object
)rr�get_proposerr^s   rr��Forge.get_proposer_s��"�$�"3�"3�4�4rc�,�[UR5e)z�Get the merge proposals for a specified branch tuple.

:param source_branch: Source branch
:param target_branch: Target branch
:param status: Status of proposals to iterate over
:return: Iterate over MergeProposal object
)rr�iter_proposals)rr\r]�statuss    rr��Forge.iter_proposalsjs��"�$�"5�"5�6�6rc�,�[UR5e)z�Retrieve a branch proposal by URL.

:param url: Merge proposal URL.
:return: MergeProposal object
:raise UnsupportedForge: Forge does not support this URL
)rr�get_proposal_by_urlrfs  rr�Forge.get_proposal_by_urlts��"�$�":�":�;�;rc�,�[UR5e)z-Return true if this forge hosts given branch.)rr�hostsr)s  rr�Forge.hosts}r�rc�,�[UR5e)z;Create a Forge object if this forge knows about a hostname.)rr�probe_from_hostname)�cls�hostname�possible_transportss   rr�Forge.probe_from_hostname�s��"�#�"9�"9�:�:rc�v�[R"UR5nURX!R/S9$)z9Create a Forge object if this forge knows about a branch.�r
)r�strip_segment_parameters�user_url�probe_from_url�control_transport)rr(r!s   r�probe_from_branch�Forge.probe_from_branch�s5���/�/����@���!�!�#�<T�<T�;U�!�V�Vrc�r�[RRU5RnUR	X2S9$)z6Create a Forge object if this forge knows about a URL.r
)r�URL�from_string�hostr)rr!r
r	s    rr�Forge.probe_from_url�s9���<�<�+�+�C�0�5�5���&�&��'�
�	
rc�,�[UR5e)ajIterate over the proposals created by the currently logged in user.

:param status: Only yield proposals with this status
    (one of: 'open', 'closed', 'merged', 'all')
:param author: Name of author to query (defaults to current user)
:return: Iterator over MergeProposal objects
:raise ForgeLoginRequired: Action requires a forge login, but none is
    known.
)rr�iter_my_proposals)rr��authors   rr�Forge.iter_my_proposals�s��"�$�"8�"8�9�9rc�,�[UR5e)z�Iterate over the currently logged in users' forks.

:param owner: Name of owner to query (defaults to current user)
:return: Iterator over project_name
)rr�
iter_my_forks)rr�s  rr�Forge.iter_my_forks�s��"�$�"4�"4�5�5rc�,�[UR5e)zDelete a project.)rr�delete_project)rr�s  rr!�Forge.delete_project����!�$�"5�"5�6�6rc�,�[UR5e)zCreate a project.)rr�create_project)rr��summarys   rr%�Forge.create_project�r#rc�,�[UR5e)z-Iterate instances.

:return: Forge instances
)rr�iter_instances)rs rr)�Forge.iter_instances�s��"�#�"4�"4�5�5rc�,�[UR5e)z_Retrieve the name of the currently logged in user.

:return: Username or None if not logged in
)rr�get_current_userr>s rr,�Forge.get_current_user�r�rc�,�[UR5e)zRerieve the web URL for a user.)rr�get_user_url)r�users  rr/�Forge.get_user_url�r�rr)NNNFTN)NNN)�openr
)r2N)rrrrrAr�r��propertyr��strr�r�r�r�rsr�r�rr�classmethodrrrrrr!r%r)r,r/rrrrr�r�s���!�%)�(�#'�'�
�E��E�-1�0��M�(+�*�*/� �$�.�������8�.NR�;�5�4�	5�7�<�.��;��;��W��W�
�
��
�
:�6�7�7��6��6�9�5rr�c���UR5HnUR5(dM O [eURS5nUSU$![a UR	S5s$f=f)zCDetermine the title for a merge proposal based on full description.z. N�.)�
splitlines�strip�
ValueError�index�rstrip)r{�	firstline�is   r�determine_titler?�sp�� �+�+�-�	��?�?����.�����O�O�D�!����!�}����%�����$�$�%�s�A�A*�)A*Nc��U(a#UHnURU5(dMUs $ [R5H-up4URU5nUbUR	U5 Us $ [U5e![
a MIf=f)z�Find the forge for a branch.

:param branch: Branch to find forge for
:param possible_forges: Optional list of forges to reuse
:raise UnsupportedForge: if there is no forge that supports `branch`
:return: A `Forge` object
)r�forges�itemsr�appendr%)r(�possible_forgesrG�_name�	forge_clss     r�	get_forgerG�s����$�E��{�{�6�"�"���%�#�L�L�N���	��/�/��7�E��*��&�&�u�-��L�+��6�
"�"��
 �	��	�s�A;�;
B	�B	r	c��[5HnURU5s $ [U5e![a M1f=f)zGet a forge from a hostname.)�iter_forge_instancesrr%)r	�instances  r�get_forge_by_hostnamerK�sF��(�*��	��/�/��9�9�+�
�8�
$�$�� �	��	���/�
=�=rGc#�# �Uc)[R5VVs/sHupUPM	 nnnOU/nUHnUR5Shv�N M gs snnfN7f)zPIterate over all known forge instances.

:return: Iterator over Forge instances
N)rArBr))rGr�rF�forge_clsess    rrIrI�sX���

�}�8>����G��_�T�y���G���g�� �	��+�+�-�-�-�!��H�	.�s�A�A�A�
A�Ac��[5HnURU5s $ [U5e![a M1f=f)z�Get the proposal object associated with a URL.

:param url: URL of the proposal
:raise UnsupportedForge: if there is no forge that supports the URL
:return: A `MergeProposal` object
)rIrr%)r!rJs  rrrsH��)�*��	��/�/��4�4�+�
�3�
��� �	��	�rL�r&r!�returnc�
�[RRU5n[R	5H1up4URU5nUR
URUS9  g [U5e![a MMf=f)z9Create a project.

Args:
  url: URL of project to create
rPN)	rrrrArBrr%�pathr%)r!r&�
parsed_urlrErF�hosters      rr%r%s}�����)�)�#�.�J�"�L�L�N���	��-�-�c�2�F�
�!�!�*�/�/�7�!�C��+��s�#�#��
 �	��	�s�A4�4
B�Br
)"rA�typingr�rrrrrr
rr%r,r0r3r<r6rCrNrSrXrar�r�r?rGr4rKr�rIrr%�RegistryrArrr�<module>rYsR��"-��/�/��F�O�O��3�&�/�/�3��v����=�6�?�?�=�A�v���A�C�6�?�?�C�
����
�"������F�O�O�������
����
�n/�n/�b58�58�pc5�c5�L�#�0%�C�%�
.���e�� 5�
.� �)-�$��$��$�&
�	�	�3��U��+�	,�	.�r

Youez - 2016 - github.com/yon3zu
LinuXploit