[Python-checkins] hooks: Lots of cosmetic changes (original) (raw)

local-hg python-checkins at python.org
Tue Mar 8 20:59:34 CET 2011


http://hg.python.org/hooks/rev/931248abb746 changeset: 57:931248abb746 user: Antoine Pitrou <solipsis at pitrou.net> date: Tue Mar 08 20:59:34 2011 +0100 summary: Lots of cosmetic changes

files: hgroundup.py

diff --git a/hgroundup.py b/hgroundup.py --- a/hgroundup.py +++ b/hgroundup.py @@ -30,57 +30,83 @@ import re import smtplib import posixpath +import traceback

from string import Template from email.mime.text import MIMEText

-VERBS = r'(?:\b(?Pclose[sd]?|closing|fixe[sd]|fixing|fix)\s+)?' +from mercurial.templatefilters import person + +VERBS = r'(?:\b(?Pclose[sd]?|closing|)\s+)?' ISSUE_PATTERN = re.compile(r'%s(?:#|\bissue|\bbug)\s*(?P[0-9]{4,})' % VERBS, re.I) -COMMENT_TEMPLATE = "${commit_msg}\n${changeset_url}" +COMMENT_TEMPLATE = """
+New changeset changesetidby{changeset_id} by changesetidbyauthor in branch '${branch}': +${commit_msg} +${changeset_url} +"""

-def update_issue(ui, repo, node, **kwargs): +def update_issue(*args, **kwargs):

def add_comment(issues, user, data, comment): """Process a comment made in a commit message."""

-def send_comments(mailrelay, toaddr, issues): +def send_comments(mailrelay, fromaddr, toaddr, issues): """Update the Roundup issue with a comment and changeset link."""

-- Repository URL: http://hg.python.org/hooks



More information about the Python-checkins mailing list