Commits

Anonymous committed ddff9c0

Apply patch for the trac-pre-commit-hook contrib script, initially contributed by Robin@home.froosh.net and refreshed by Markus Tacker, in #2609.

I took this opportunity to add Markus in our THANKS file. Thanks for all your contributions so far, Markus!

Comments (0)

Files changed (2)

  * Noah Slater                    nslater@gmail.com
  * Bill Soudan                    bill@soudan.net
  * Ludvig Strigeus                
+ * Markus Tacker                  m@tacker.org
  * Alec Thomas                    alec@swapoff.org
  * Jani Tiainen                   redetin@luukku.com
  * Zilvinas Valinskas             zilvinas@gemtek.lt

contrib/trac-pre-commit-hook

     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