--- trac-ticket-post-commit-hook.orig 2005-07-25 20:29:43.000000000 +0200 +++ trac-ticket-post-commit-hook 2006-06-01 14:31:22.000000000 +0200 @@ -60,6 +60,7 @@ # references, refs, addresses, re # The specified issue numbers are left in their current status, but # the contents of this commit message are added to their notes. +# ":" can be added after the command name, to get a debian like pattern. # # A fairly complicated example of what you can do is with a commit message # of: @@ -113,7 +114,7 @@ leftEnv = '' rghtEnv = '' -commandPattern = re.compile(leftEnv + r'(?P[A-Za-z]*).?(?P#[0-9]+(?:(?:[, &]*|[ ]?and[ ]?)#[0-9]+)*)' + rghtEnv) +commandPattern = re.compile(leftEnv + r'(?P[A-Za-z]*):{0,1}.?(?P#[0-9]+(?:(?:[, &]*|[ ]?and[ ]?)#[0-9]+)*)' + rghtEnv) ticketPattern = re.compile(r'#([0-9]*)') class CommitHook: