Mike's Pub -> Discussion Corner -> Support Forum for CVSNotice

 Settings fot $filt? [ Reply ] [ Back to Index ] Top Bottom

Author : Christoph Schwaeppe
Date: 2003/03/04 17:23

On my cvslist-site all links to "view in CVS" are targeting to  the cvsweb.cgi plus teh
extension /CVS which is not my cvs-directory. This happens in the directory view and also
in the message view. Also on teh directory view the "Directory [filter] shows 'CVS' only.
The link "Browse CVS Repository" is working well. I didn't find to set the path to CVSROOT
for the directory filter. Where can I do it or is it coming from the databse? 

 Re: Settings fot $filt? [ Reply ] [ Back to Index ] Top Bottom

Author : Mike
Date: 2003/03/05 15:42

CVSNotice uses the Subject line of the mails it receives to figure out which the directory
and files are involved, so the exact format of the CVS notice mails you send/receive will
influence how CVSNotice can "find" those two elements.

Example: in the cases where I used it, the subject in the CVS notices looked like this :

CVS: some/path/ file1,1.2,1.3 file2,1.7

The $prefix variable is set to 'CVS: ' here, so the script will remove that part of the
subject first, and then split the rest of the subject line into $dir (the first part) and
$files (the rest). And that's what it saves in the database, and uses later on to display
the CVS notices and to link back to the corresponding ViewCVS directory.

So in your case, you probably need to adapt the $prefix variable of the script, and
perhaps customize the import_notices function a little bit, so that the 'CVS' part is
ignored and the script can find the right $dir. Otherwise, you won't get the right
directory in the database...

 Re: Settings fot $filt? [ Reply ] [ Back to Index ] Top Bottom

Author : Christoph Schwaeppe
Date: 2003/03/05 21:23

Thank You very much for that usefull answer. :)

 Reply [ Back to Index ] Top Bottom
Name : or OpenID OpenID Login
E-mail : (optional)
Subject :
Message :
MathGuard security question: 5 + 6 =
 

Mike's Pub -> Discussion Corner -> Support Forum for CVSNotice