2000-08-25 18:01 knu
* cvsweb.cgi: Get side-by-side diff working when $showfunc is true,
noting that `-p' option of diff(1) can only be used with context
and unified diffs.
Submitted by: Roger Hardiman <roger@cs.strath.ac.uk>
Allow to specify CVS tags or branch names (including `.' and
`HEAD') on cvs checkout.
e.g. http://foo/cvsweb.cgi/bar/dood.c?rev=.
http://foo/cvsweb.cgi/bar/dood.c?rev=RELENG_4http://foo/cvsweb.cgi/bar/dood.c?rev=RELENG_4_1_0_RELEASE
Not for diff currently, as rcsdiff does not grok CVS tags.
Inspired by: Folks at the FreeBSD cvs-all list.
Specify `-R' (turn on read-only repository mode) and `-l' (do not
log in the command history) on cvs checkout, so that one does not
need a write permission with the repository.
2000-08-25 00:53 knu
* cvsweb.cgi: MFZ 1.94. (Fix a typo in JavaScript code)
I had carelessly used Perl5 specific syntax everywhere in my previous
changes as I wasn't aware that there were those mirror sites that
still use perl4.
Pointed out by: wosch
in /usr/local/etc/cvsweb-freebsd. The repo options are only valid for
the FreeBSD CVS tree.
BTW, the cvsweb.cgi mirror sites should update their
/usr/local/etc/cvsweb-freebsd too if possible.
Submitted by: peter
more than one CVS tree and FreeBSD.org E-mail hyperlinks will not work
for the other trees (e.g. NetBSD, learn etc.).
Pointed out by: Wolfgang Solfrank <ws@tools.de>
configuration to the extern config file /usr/local/etc/cvsweb.
OpenBSD is not a standard part of FreeBSD ;-) and I doubt that
FreeBSD mirror site will support OpenBSD.
Make the "$CVSROOT missing" message seem like a temporary error, to
reduce email to webmaster when freefall is down.
Only display Attic button when there's an Attic present
Consolidate style of &cvsroot additions
/usr/local/etc/cvsweb-$cvsroot if exists. The config files
are perl scripts.
This make it possible to define local cvs roots, help messages,
navigation bar and E-Mail addresses without changing the
original cvsweb.cgi script.
to use one script for different cvs trees, e.g.
learn:
cvsweb.cgi?cvsroot=learn
freebsd:
cvsweb.cgi?cvsroot=freebsd
openbsd:
cvsweb.cgi/src/bin/cat/cat.c?cvsroot=openbsd
The default cvs root is `freebsd'.
old location with an "(in the Attic)" notation.
Make queries sticky so that only_on_branch &c can live across directory
traversals.
Learn about file death.
Print out information about branch points as well as branches.
Don't use user input in regexp's (e.g. turned /^${module}\s+(\S+)/o
into /^(\S+)\s+(\S+)/o && $module eq $1) to avoid "foo.c++"
regex error
Add to safeglob() a little (although it's still not used yet)
stuff after testing it, since I had fixed that bug already. Oops!
- Added "?only_on_branch=RELENG_2_2" (e.g.) support and form to select
- Make diff requests refer to foo.diff so browsers don't tend to overwrite
source files with diff's
- Get rid of content-transfer-encoding: x-gzip since it's not sufficiently
standard
- Parse PR references in log messages
- Add side-by-side as a diff option (?f=s)
- Use &html_header() to get consistent look for error messages
- Make checkout and diff into functions for flexibility
non-existing file or directory, a redirect to exactly the same locations
was issued, instead of an error messages.
Reported by Jan Schreiber <akira@loopback.org>
you can also say things like #RELENG_2_2 or #RELENG_2_1_6_1_RELEASE
Allow specifying a module name, e.g. http://.../cvsweb.cgi/mrouted
will give you a redirect to .../cvsweb.cgi/src/usr.sbin/mrouted