diff -r -u bugzilla/show_bug.cgi bugzilla-nopatch/show_bug.cgi --- bugzilla/show_bug.cgi 2007-10-18 23:46:11.000000000 -0700 +++ bugzilla-nopatch/show_bug.cgi 2008-03-31 12:56:38.000000000 -0700 @@ -138,5 +138,38 @@ print $cgi->header($format->{'ctype'}); +# Function to convert the cf_p4fixes custom field into links to +# a P4Web installation. Input to this function is a whitespace +# separated string of numbers like "3452 212 6563 2324" which is +# generated by the Perforce P4DTG Bugzilla plugin. +sub p4web() +{ + # Don't show the header if we don't have any fixes. + if( !length "@_" ) + { return; } + + # URL of your P4Web installation. + my $p4web_base = "http://p4web-URL.example.com/"; + my $p4web_ac = "?ac=10"; + + my @f = split( /\s+/, "@_" ); + my $r = '