https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hgext/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/hgext/__pycache__/bookflow.cpython-310.pyc
o

�]Lb��@s�dZddlmZddlmZddlmZmZmZm	Z	m
Z
dZiZe
�
e�Z
e
eddg�e
edd	�e
ed
d�iZe
�e�Zdd
�Zdd�Z	ddd�Zdd�Zdd�Zddd�Zdd�Zdd�ZdS)a?implements bookmark-based branching (EXPERIMENTAL)

 - Disables creation of new branches (config: enable_branches=False).
 - Requires an active bookmark on commit (config: require_bookmark=True).
 - Doesn't move the active bookmark on update, only on commit.
 - Requires '--rev' for moving an existing bookmark.
 - Protects special bookmarks (config: protect=@).

 flow related commands

    :hg book NAME: create a new bookmark
    :hg book NAME -r REV: move bookmark to revision (fast-forward)
    :hg up|co NAME: switch to bookmark
    :hg push -B .: push active bookmark
�)�absolute_import)�_)�	bookmarks�commands�error�
extensions�	registrarsbookflow�protect�@�require-bookmarkT�enable-branchesFcKsv|jj}|r+||�td�vrt�td�|��t||�s)tjtd�td�|d��d	S|�tdd�r9t�td���d	S)
Nr	s'cannot commit, bookmark %s is protectedsAcannot commit, working directory out of sync with active bookmarksrun 'hg up %s'��hintrTs(cannot commit without an active bookmarkr)	�
_bookmarks�active�
configlist�MY_NAMEr�Abortr�cwd_at_bookmark�
configbool)�ui�repo�kwargsr�r�0/usr/lib/python3/dist-packages/hgext/bookflow.py�commit_hook(s"
�
�
��rcCst|�dkr||||�SdS)N�F)�len)�origr�parents�noderrr�bookmarks_update;sr!Nc	Cs@|s|j}|D]}||vrt�td�|��q|||||||�S)Ns8bookmark %s already exists, to move use the --rev option)rrrr)	rr�tr�names�rev�force�inactive�marks�namerrr�bookmarks_addbookmarksDs����r)cOs"t||�|||g|�Ri|��S�N)r)rrr�args�optsrrr�commands_commitTs
r-cOsD|||g|�Ri|��}|jj}|r t||�s |�td�|�|S)NsBworking directory out of sync with active bookmark, run 'hg up %s')rrr�warnr)rrrr+r,�rcrrrr�
commands_pullYs���r0cKs>|r|�d�s|�d�stjtd�dd��||||fi|��S)N�cleanr$s@creating named branches is disabled and you should use bookmarksssee 'hg help bookflow'r
)�getrrr)rrr�labelr,rrr�commands_branchgs��r4cCs|j|}|�d�}||kS)N�.)r�lookup)r�mark�mark_id�cur_idrrrrrs

rcCs`t�tdt�t�tdt�t�tjdt�t�tjdt	�|�
td�s.t�tjdt�dSdS)Nsupdatesaddbookmarksscommitspullrsbranch)
r�wrapfunctionrr!r)�wrapcommandr�tabler-r0rrr4)rrrr�uisetupxs�r=)NFFr*)�__doc__�
__future__r�mercurial.i18nr�	mercurialrrrrrr�configtable�
configitem�cmdtable�commandrr!r)r-r0r4rr=rrrr�<module>s*



�


https://t.me/RX1948 - 2025