=================================================================== RCS file: /cvs/cvsweb/cvsweb.cgi,v retrieving revision 1.2 retrieving revision 1.9 diff -u -p -r1.2 -r1.9 --- cvsweb/cvsweb.cgi 1996/09/29 02:19:30 1.2 +++ cvsweb/cvsweb.cgi 1997/07/19 00:54:40 1.9 @@ -44,6 +44,10 @@ diffs between that revision and the previous one, and a form at the bottom of the page that allows you to display diffs between arbitrary revisions.
+If you would like to use this CGI script on your own web server and +CVS tree, see +the CVSWeb distribution site. +
Please send any suggestions, comments, etc. to Bill Fenner <fenner@freebsd.org> "; @@ -65,13 +69,19 @@ $scriptwhere =~ s|/$||; if (!-d $cvsroot) { &fatal("500 Internal Error",'$CVSROOT not found!'); } + +if ($query = $ENV{'QUERY_STRING'}) { + foreach (split(/&/, $query)) { + s/%(..)/sprintf("%c", hex($1))/ge; # unquote %-quoted + if (/(\S+)=(.*)/) { + $input{$1} = $2; + } else { + $input{$_}++; + } + } + $query = "?" . $query; +} if (-d $fullname) { -# Something that would be nice to support, although I have no real -# good idea of how, would be to get full directory diff's, using -# symbolic names (revision numbers would be meaningless). -# The problem is finding a list of symbolic names that is common -# to all the files in the directory. -# opendir(DIR, $fullname) || &fatal("404 Not Found","$where: $!"); @dir = readdir(DIR); closedir(DIR); @@ -88,151 +98,87 @@ if (-d $fullname) { # provides the results that I want in most browsers. Another # case of layout spooging up HTML. print "
\n"; + if ($input{"only_on_branch"}) { + print "