Closed (fixed)
Project:
CVS integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2007 at 22:16 UTC
Updated:
3 Mar 2008 at 16:13 UTC
See the commit log from
http://drupal.org/cvs?commit=81456
Probabaly just a little regex goofiness.
Comments
Comment #1
dwwtheme_cvs_commit_message() is the droid you're looking for:
Ahh, nothing like having serious regexp magic in your theme function... ;)
Comment #2
hunmonk commentedshould be all fixed up, deployed on d.o
Comment #3
jpetso commentedThe fix is incorrect, because it makes the whole first part of the regex ("added/patched/fixed N") obsolete. That was a way to make issue references without hash signs possible, and now doesn't work anymore - which is, for the record, a good thing imho (yay for simplicity). So if it's decided that a hash sign is needed in all cases then this part can be deleted altogether. That would make the regexp look like
/#(\d+)/i, and that's quite a bit simpler indeed :DI could also imagine another possibility:
(?:(?:fix|add|patch)(?:ed)?\s+#?|#)(\d+)\b/i- note the\bat the end, which indicates a word boundary. That would fix the "add 32x32" issue at hand... don't know how far we want to go in allowing stuff, though. Just decide on something, and I'll do it the same way in Commit Log.Comment #4
jpetso commentedOh right, and of course we could also use a combination of
\band the simple no-frills regexp. That would actually be my preferred choice.Comment #5
hunmonk commented@jpetso: if you give me the exact regex to use for your suggestion in #4, then i'll be happy to commit that.
Comment #6
jpetso commentedSure, that would be
/#(\d+)\b/i.Tested and works on
#300: blah,Fix #300 by jpetso: blah,#300- your lucky numbah.Does not work (by design) on
Fix 300: blahand similar stuff without hash signs.Comment #7
hunmonk commentedlooks like we actually needed
/#(\d+)\b/iefor the backreferences to work, and i needed to clean up the backreferences in the strtr(). tested, and works well. committed to 5.x and 6.x, deployed on d.o.Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.