403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/hgext/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgext/__pycache__/bookflow.cpython-39.opt-1.pyc
a

�+�b��@s�dZddlmZddlmZddlmZmZmZm	Z	m
Z
dZiZe
�
e�Z
e
eddg�e
edd	�e
ed
d�iZe
�e�Zdd
�Zdd�Zddd�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-branchesFcKst|jj}|rT||�td�vr.t�td�|��t||�sptjtd�td�|d��n|�tdd�rpt�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�activeZ
configlist�MY_NAMEr�Abortr�cwd_at_bookmark�
configbool)�ui�repo�kwargsr�r�4/usr/lib64/python3.9/site-packages/hgext/bookflow.py�commit_hook(s 
�
�
�rcCs t|�dkr||||�SdSdS)N�F)�len)�origr�parentsZnoderrr�bookmarks_update;srNc	Cs@|s.|j}|D]}||vrt�td�|��q|||||||�S)Ns8bookmark %s already exists, to move use the --rev option)rrrr)	rr�tr�names�rev�forceZinactiveZmarks�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���r+cKs>|r*|�d�s*|�d�s*tjtd�dd��||||fi|��S)NZcleanr"s@creating named branches is disabled and you should use bookmarksssee 'hg help bookflow'r
)�getrrr)rrrZlabelr'rrr�commands_branchgs��r-cCs|j|}|�d�}||kS)N�.)r�lookup)rZmarkZmark_idZcur_idrrrrrs

rcCs\t�tdt�t�tdt�t�tjdt�t�tjdt	�|�
td�sXt�tjdt�dS)Nsupdatesaddbookmarksscommitspullrsbranch)
rZwrapfunctionrrr%Zwrapcommandr�tabler(r+rrr-)rrrr�uisetupxsr1)NFF)N)�__doc__Z
__future__rZmercurial.i18nrZ	mercurialrrrrrrZconfigtableZ
configitemZcmdtableZcommandrrr%r(r+r-rr1rrrr�<module>s(


�



Youez - 2016 - github.com/yon3zu
LinuXploit