HEX
Server: Apache
System: Linux infong-uk86 4.4.400-icpu-106 #2 SMP Mon Sep 15 08:23:40 UTC 2025 x86_64
User: u44115835 (4976590)
PHP: 8.4.17
Disabled: NONE
Upload Files
File: //kunden/lib/python3/dist-packages/hgext/__pycache__/commitextras.cpython-39.pyc
a

%0�_w	�@sndZddlmZddlZddlmZddlmZmZm	Z	m
Z
mZiZe
�
e�Z
dZhd�Zdd	�Zd
d�ZdS)z+adds a new flag extras to commit (ADVANCED)�)�absolute_importN)�_)�commands�error�
extensions�	registrar�utilsships-with-hg-core>
scloseshistedit_sourcestransplant_sourcessourcestopicsamend_sourcesintermediate-sources
rebase_sourcesbranchs__touch-noise__cCs8t�tjdt�}|d}|�ddgtd�td�f�dS)Nscommit��sextrasset a changeset's extra valuess	KEY=VALUE)rZwrapcommandr�table�_commit�appendr)�ui�entryZoptions�r�4/usr/lib/python3/dist-packages/hgext/commitextras.py�extsetup)s��rcsJt�|d�r|��}G��fdd�d|j���|_|||g|�Ri���S)N�
unfilteredcs eZdZ���fdd�Z�ZS)z_commit.<locals>.repoextracs���d�}|D]�}d|vr0td�}t�||��|�dd�\}}|sZtd�}t�||��t�d|�rxtd�}t�|��|tvr�td�}t�||��||d|<qt�|�j	|i|��S)	NZextra�=s4unable to parse '%s', should follow KEY=VALUE formatr	s)unable to parse '%s', keys can't be emptys[^\w-]s8keys can only contain ascii letters, digits, '_' and '-'s2key '%s' is used internally, can't be set manually)
�getrrZAbort�split�re�search�usedinternally�super�commit)�selfZ	innerpatsZ	inneroptsZextras�raw�msg�k�v)�	__class__�opts�	repoextrarrr<s.
��
�z!_commit.<locals>.repoextra.commit)�__name__�
__module__�__qualname__r�
__classcell__r�r"r#)r!rr#;sr#)rZsafehasattrrr!)ZorigrZrepoZpatsr"rr(rr7s
r)�__doc__Z
__future__rrZmercurial.i18nrZ	mercurialrrrrrZcmdtableZcommandZ
testedwithrrrrrrr�<module>s