HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/hgext/__pycache__/record.cpython-310.pyc
o

�]LbJ�@s�dZddlmZddlmZddlmZmZmZm	Z	m
Z
iZe
�e�ZdZ
eddd�ejd	d
dd�D�ejed�ejd
�dd��Zdd�Zedged�ejdd�dd��Zdd�Zdd�Zdd�Zdd�ZdS) z�commands to interactively select changes for commit/qrefresh (DEPRECATED)

The feature provided by this extension has been moved into core Mercurial as
:hg:`commit --interactive`.�)�absolute_import)�_)�cmdutil�commands�error�
extensions�	registrarsships-with-hg-core�recordcCsg|]
}|ddkr|�qS)��interactive�)�.0�crr�./usr/lib/python3/dist-packages/hgext/record.py�
<listcomp>$srs	commit|cir
Nshg record [OPTION]... [FILE]...)�helpcategorycOst|��s
t�td�d��d|d<ddi}|�|d��tj||g|�Ri|��Wd�S1s3wYdS)	a}interactively select changes to commit

    If a list of files is omitted, all changes reported by :hg:`status`
    will be candidates for recording.

    See :hg:`help dates` for a list of formats valid for -d/--date.

    If using the text interface (see :hg:`help config`),
    you will be prompted for whether to record changes to each
    modified file, and for files with multiple changes, for each
    change to use. For each query, the following responses are
    possible::

      y - record this change
      n - skip this change
      e - edit this change manually

      s - skip remaining changes to this file
      f - record remaining changes to this file

      d - done, skip remaining changes and files
      a - record all changes to all remaining files
      q - quit, recording no changes

      ? - display help

    This command is not available when committing a merge.s)running non-interactively, use %s insteadscommitT�interactive�sexperimentalscrecordFr	N)rr�Abortr�configoverrider�commit)�ui�repo�pats�opts�	overridesrrr�record!s%
�$�rcs^|ds|||g|�Ri|��St�d���fdd�}tj|||ddtjg|�Ri|��dS)Nr�mqcs�j||fi|��dS)N)�refresh�rrrr��mqrr�
committomqWszqrefresh.<locals>.committomqT)r�findr�dorecord�recordfilter)�origfnrrrrr"rr r�qrefreshQs
��
�r'�qrecord�&hg qrecord [OPTION]... PATCH [FILE]...T)r�	inferrepocOstd|||g|�Ri|��S)zvinteractively record a new patch

    See :hg:`help qnew` & :hg:`help record` for more information and
    usage.
    �qnew��_qrecord)rr�patchrrrrr�qrecordes
r/cs�zt�d��Wntyt�td���w|j�����fdd�}ddi}|�|d�� t	�
|�t	j||||dt	jg|�Ri|��Wd�dS1sPwYdS)Nrs'mq' extension not loadedcs(d|d<�j||�g|�Ri|��dS)NF�	checkname)�newr�r!r.rrr"}s z_qrecord.<locals>.committomqrFr	)
rr#�KeyErrorrrrr!�checkpatchnamerr�checkunfinishedr$r%)�
cmdsuggestrrr.rrr"rrr2rr-us.�
���"�r-cOs>|drtd|||g|�Ri|��S||||g|�Ri|��S)Nrr,)r&rrr.�argsrrrr�qnew�sr8cCszzt�d�}Wn
tyYdSwt|jdddd�tjtd�ftd<td|jt	td��td|jt
td��dS)	Nrr+r
r)r(s interactively record a new patchsqrefreshs'interactively select changes to refresh)rr#r3r/�cmdtabler�
diffwsoptsr�_wrapcmdr8r')rr!rrr�uisetup�s ���r<cCs(t�|||�}|d�ddd|f�dS)Nr
�ir)r�wrapcommand�append)�cmd�table�wrapfn�msg�entryrrrr;�sr;)�__doc__�
__future__r�mercurial.i18nr�	mercurialrrrrrr9�command�
testedwithrAr:�CATEGORY_COMMITTINGrr'r/r-r8r<r;rrrr�<module>s:
��
(�