Modify

Opened 4 years ago

Closed 4 years ago

#7171 closed defect (fixed)

InterTrac alias support

Reported by: kroseneg@… Owned by: 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 4 years ago by okazaki

Thank you, I will confirm this patch.

comment:2 Changed 4 years ago by okazaki

(In [8342]) refs #7171

comment:3 Changed 4 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.