danf: curl-www/auto cvs2html.pl,1.13,1.14
| Newsgroups | gmane.comp.web.curl.www.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/curl/curl-www/auto
In directory labb:/tmp/cvs-serv812
Modified Files:
cvs2html.pl
Log Message:
Generate a link to view the 1.1 version of a file.
Index: cvs2html.pl
===================================================================
RCS file: /cvsroot/curl/curl-www/auto/cvs2html.pl,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- cvs2html.pl 10 Jul 2007 21:38:35 -0000 1.13
+++ cvs2html.pl 13 Jul 2007 22:01:13 -0000 1.14
@@ -380,7 +380,10 @@
$p = sprintf("%d.%d", $num, $dot-1);
# viewcvs.cgi style diff URL:
- $r = "<a href=\"$root/$file.diff?r1=$p&r2=$r\">$r</a>";
+ $r = "<a href=\"$root/$file.diff?r1=$p&r2=$r\">$r</a>";
+ } else {
+ # viewcvs.cgi style view file URL:
+ $r = "<a href=\"$root/$file?rev=$r&content-type=text/vnd.viewcvs-markup\">$r</a>";
}
}