Modify

Opened 7 years ago

Closed 7 years ago

#7171 closed defect (fixed)

InterTrac alias support

Reported by: kroseneg@… Owned by: Yuji OKAZAKI
Priority: normal Component: InterTracCommitPatch
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

This patch patches the patched trac-post-commit-hook to support InterTrac aliases

--- trac-post-commit-hook.orig      2010-05-27 10:26:29.000000000 +0200
+++ trac-post-commit-hook      2010-05-27 11:38:37.000000000 +0200
@@ -161,8 +161,14 @@
         cmd_groups = command_re.findall(chgset.message)

         tickets = {}
+
+        intertrac = self.env.config['intertrac']
+
         for cmd, prj, tkts in cmd_groups:
             prj = prj[0:len(prj)-1]
+
+            prj = intertrac.get(prj, prj)
+
             funcname = CommitHook._supported_cmds.get(cmd.lower(), '')
             if funcname:
                 for tkt_id in ticket_re.findall(tkts):

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by Yuji OKAZAKI

Thank you, I will confirm this patch.

comment:2 Changed 7 years ago by Yuji OKAZAKI

(In [8342]) refs #7171

comment:3 Changed 7 years ago by anonymous

Resolution: fixed
Status: newclosed

I'm sorry to my very slow reply. I confirmed this patch works correctly. Thank you.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Yuji OKAZAKI.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.