#2609: /trunk/contrib/trac-pre-commit-hook is unnecessarily case sensitive
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: jonas
Type: defect | Status: new
Priority: low | Milestone:
Component: general | Version: 0.9.3
Severity: trivial | Resolution:
Keywords: |
-----------------------------------+----------------------------------------
Changes (by Markus Tacker <[EMAIL PROTECTED]>):
* cc: [EMAIL PROTECTED] (added)
Comment:
This is my patch for r3566
{{{
Index: /opt/trac/contrib/trac-pre-commit-hook
===================================================================
--- /opt/trac/contrib/trac-pre-commit-hook (Revision 3566)
+++ /opt/trac/contrib/trac-pre-commit-hook (Arbeitskopie)
@@ -30,8 +30,8 @@
log = sys.argv[2]
tickets = []
- for tmp in re.findall('(?:closes|fixes|addresses|references|refs|re)'
- '.?(#[0-9]+(?:(?:[, &]+| *and *)#[0-9]+)*)',
log):
+ for tmp in
re.findall('(?:close|closed|closes|fix|fixed|fixes|addresses|references|refs|re|see)'
+ '.?(#[0-9]+(?:(?:[, &]+| *and *)#[0-9]+)*)',
log.lower()):
tickets += re.findall('#([0-9]+)', tmp)
# At least one ticket has to be mentioned in the log message
}}}
--
Ticket URL: <http://trac.edgewall.org/ticket/2609#comment:2>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets