Date: Fri, 27 Dec 2002 15:05:07 +0100 From: "Paul Gelderblom" <paul.gelderblom@lostboys.nl> To: "Paul Gelderblom" <paul.gelderblom@lostboys.nl>, =?iso-8859-1?Q?Ville_Skytt=E4?= <scop@FreeBSD.org> Cc: <freebsd-cvsweb@FreeBSD.org>, <paul@lostboys.nl> Subject: Re: cvsweb patch: History interface Message-ID: <003501c2adb0$f6729930$0300000a@PAULLAP>
index | next in thread | raw e-mail
[-- Attachment #1 --] a classic: forgot the attachment.... ----- Hi Ville, Find attached my 3rd patch (and the biggest one): a cvs history interface. It probably should be called an extension rather than a patch... It allows you to get selected commit information from a repository based on the project, users, and/or commit date. I parse the cvs history file directly to gain speed, and because the output of "cvs history" is actually harder to parse. I have re-built it to use HTML::Template (works pretty nice, actually) It is a separate script which should live next to cvsweb.cgi, but it does have crosslinks with it. It uses the same config file, which i have extended a bit, so that implementation will be simple for most users. One of the nice features (at least, I think so) is the "toplevel" or "condensed" view it has: when you look at the root of a repository, it gives you a list of active projects (active meaning that they have had commits in the last 14 days) and the names of users that have committed on those projects in that period. In the attached tar file, you find the new perl and template files, and unidiffs for cvsweb.cgi and cvsweb.conf. The diffs are with respect to the current HEAD revision on freebsd.org I had to include the crosslink feature also, because it is nessecary to link up History.cgi and cvsweb.cgi. Also, i improved the crosslink thing a bit (e.g.: a repository name was not included in the params of getCrosslinksForDirectory). If you still have to start with the crosslink thing, consider starting from this version. The only changes you will find in cvsweb.cgi are actually related to the crosslinks. The changes in cvsweb.conf are the added parameters for History.cgi and the extended version of the crosslinks. I have tested this on various repositories, but not with mod-perl. Don't have it. Let me know what you think of it! Greetings, Paul [-- Attachment #2 --] /X>
