Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/hgext/hooklib/__pycache__/ |
Upload File : |
o �]Lb� � @ s� d Z ddlmZ ddlmZ ddlmZ ddl m Z ddlmZm Z mZmZmZmZmZ ddlmZ ddlmZ i Ze�e�Zed d dd� ed ddd� ed d dd� dd� Zddd�ZdS )aw changeset_published is a hook to send a mail when an existing draft changeset is moved to the public phase. 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-phase.changeset_published = python:hgext.hooklib.changeset_published.hook � )�absolute_importN)�_)�encoding�error� formatter� logcmdutil�mail�pycompat� registrar)�dateutil� )�notify� notify_published� domain)�default� messageidseed� templatesA Subject: changeset published This changeset has been published. c C s\ | � dd�p| � dd�}| � dd�p| � dd�}| � dd�}t�|�}t�| ||�}| �� t�| |d�}t� } |j D ]!\} }|d u rI| � | � q;|�d||�� �}t |�r\| � | � q;q;t | �dkrj| �d � d S |j||�� | � d d�|j|jd� | �� }zt�|�} W n tjy� } zt�|��d }~ww t�|||�| d <