Stop linking to cvsweb in old commit messages: cvsweb.f.o no longer exists.
This commit is contained in:
parent
49d5867a9e
commit
a800ec229e
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=45533
1 changed files with 0 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue