| Server IP : 104.21.13.164 / Your IP : 216.73.216.72 Web Server : Apache System : Linux gator4057.hostgator.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64 User : badawi ( 1130) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/site-packages/hgext/hooklib/__pycache__/ |
Upload File : |
a
�+�b� � @ s� d Z ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZm
Z
mZmZmZmZmZmZ ddlmZ ddlmZ i Ze�e�Zed d
dd� ed ddd� ed d
dd� dd� Zdd� Zddd�ZdS )a� changeset_obsoleted is a hook to send a mail when an
existing draft changeset is obsoleted by an obsmarker without successor.
Correct message threading requires the same messageidseed to be used for both
the original notification and the new mail.
Usage:
[notify]
messageidseed = myseed
[hooks]
txnclose.changeset_obsoleted = python:hgext.hooklib.changeset_obsoleted.hook
� )�absolute_importN)�_)�encoding�error� formatter�
logcmdutil�mail�obsutil�pycompat� registrar)�dateutil� )�notify� notify_obsoleted� domain)�default�
messageidseed� templatesA Subject: changeset abandoned
This changeset has been abandoned.
c
C sn | � dd�p| � dd�}| � dd�p.| � dd�}| � dd�}t�|�}t�| ||�}| �� t�| |d�}t� } |j D ]B\}
}|d u r�| �
|
� qv|�d||�� �}t
|�rv| �
|
� qvqvt
| �dkr�| �d � d S |j||�� | � d
d�|j|jd� | �� }zt�|�}
W n2 tj�y@ } zt�|��W Y d }~n
d }~0 0 t�|||�|
d
<