SOURCES: cvsspam-issue.patch (NEW) - recognize issue xxx to link t...
glen
glen at pld-linux.org
Wed Mar 1 23:57:01 CET 2006
Author: glen Date: Wed Mar 1 22:57:00 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- recognize issue xxx to link to eventum
---- Files affected:
SOURCES:
cvsspam-issue.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/cvsspam-issue.patch
diff -u /dev/null SOURCES/cvsspam-issue.patch:1.1
--- /dev/null Wed Mar 1 23:57:00 2006
+++ SOURCES/cvsspam-issue.patch Wed Mar 1 23:56:55 2006
@@ -0,0 +1,31 @@
+--- cvsspam/cvsspam.rb~ 2006-02-28 11:30:01.000000000 +0200
++++ cvsspam/cvsspam.rb 2006-03-02 00:49:48.000000000 +0200
+@@ -546,6 +546,10 @@
+ match =~ /([0-9]+)/
+ "<a href=\"#{$ticketURL.sub(/%s/, $1)}\">#{match}</a>"
+ }
++issueSub = proc { |match|
++ match =~ /([0-9]+)/
++ "<a href=\"#{$issueURL.sub(/%s/, $1)}\">#{match}</a>"
++}
+ wikiSub = proc { |match|
+ match =~ /\[\[(.*)\]\]/
+ raw = $1
+@@ -1281,6 +1285,7 @@
+ $wikiURL = nil
+ $jiraURL = nil
+ $ticketURL = nil
++$issueURL = nil
+ $viewcvsURL = nil
+ $choraURL = nil
+ $cvswebURL = nil
+@@ -1393,6 +1398,9 @@
+ if $ticketURL != nil
+ commentSubstitutions['\b[Tt][Ii][Cc][Kk][Ee][Tt]\s*#?[0-9]+\b'] = ticketSub
+ end
++if $issueURL != nil
++ commentSubstitutions['\b[Ii][Ss][Ss][Uu][Ee]\s*#?[0-9]+\b'] = issueSub
++end
+ if $wikiURL != nil
+ commentSubstitutions['\[\[.+\]\]'] = wikiSub
+ end
================================================================
More information about the pld-cvs-commit
mailing list