svn commit: r45533 - head/en_US.ISO8859-1/htdocs/cgi

Gavin Atkinson gavin at FreeBSD.org
Thu Aug 28 11:48:19 UTC 2014


Author: gavin
Date: Thu Aug 28 11:48:19 2014
New Revision: 45533
URL: http://svnweb.freebsd.org/changeset/doc/45533

Log:
  Stop linking to cvsweb in old commit messages: cvsweb.f.o no longer exists.

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/getmsg.cgi

Modified: head/en_US.ISO8859-1/htdocs/cgi/getmsg.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/getmsg.cgi	Thu Aug 28 10:26:39 2014	(r45532)
+++ head/en_US.ISO8859-1/htdocs/cgi/getmsg.cgi	Thu Aug 28 11:48:19 2014	(r45533)
@@ -238,27 +238,8 @@ sub strip_url
 sub AddAnchors
 {
     my ($text) = @_;
-    my $cvsweb = 'http://cvsweb.FreeBSD.org';
 
     $text =~ s/(http|https|ftp)(:[\S]*?\/?)(\W?\s)/sprintf("<a href=\"%s\">%s<\/a>$3", &strip_url("$1$2"), "$1$2", $3)/egoi;
 
-    if ($text =~ /Revision\s+Changes\s+Path/) {
-
-	
-	# match revsion and file name
-	#   1.10      +2 -2      ports/audio/xmradio/Makefile
-	# ->
-	#  cvsweb.cgi/ports/audio/xmradio/Makefile.diff?r1=1.9&r2=r.10
-	#
-	$text =~ s!([\d.]+\.)(\d+)              # revision
-		   (\s+[+-]\d+\s+[+-]\d+\s+)    # +- stuff
-	           ([a-zA-Z\d_:.+/-]+)          # filename
-		  !"$1$2" eq "1.1" ?
-		    sprintf("%s%s%s<a href=\"$cvsweb/%s\">%s</a>", $1, $2, $3, $4, $4) :
-		    sprintf("%s%s%s<a href=\"$cvsweb/%s.diff?r1=%s%s&r2=%s%s\">%s</a>",
-			    $1, $2, $3, $4, $1, $2 - 1, $1, $2, $4)!gex;
-    }
-
-
     return $text;
 }


More information about the svn-doc-all mailing list