Setting Up CVS Integration

FogBugz comes with two integration scripts for CVS: one written in Perl, and one written in VBScript. If your CVS server runs on a Linux or Unix machine, you'll probably want to use the Perl version. If your CVS server runs on a Windows machine, you can install Perl and use the Perl script, but it's probably simpler to use the VBScript version. The installation instructions are similar either way. You'll find the scripts installed with FogBugz:

Program Files\FogBugz\Accessories\SourceControl\CVS\logBugData.pl Program Files\FogBugz\Accessories\SourceControl\CVS\logBugData.vbs

Once you've located the appropriate script, follow these steps to set things up:

1. Open a command window on your CVS server and check out the CVSROOT directory by running this command:

cvs co -d cvsroot CVSROOT

2. Make the CVSROOT directory your current directory.

3. Create a file named bugz.txt in this directory. The file should contain a single line of text: CVS: BUGZID:

4. Save the file and add it to your CVS repository by running this command:

cvs add bugz.txt

5. Copy the appropriate script file for your platform to the CVSHOME directory. If you're running on Unix, set execute permissions on this file.

6. Open the script file in a text editor. Near the top of the file, you'll find three settings that you need to customize:

• Set the value of $BUGZ_SERVER to the DNS name of the Web server where FogBugz is running.

• Set the value of $BUGZ_URL to the virtual path of your FogBugz installation. Normally this is /FogBugz/.

• Set the value of $CVSSUBMIT to cvsSubmit.asp or cvsSubmit.php, depending on whether you're using the ASP or PHP version of FogBugz.

7. Save the script file and use cvs add to add it to your repository.

8. Edit the file rcsinfo to add one line of text to the end. If you're running on a Unix server, the line to add is

ALL $CVSROOT/path/to/bugz.txt

If you're running on a Windows server, use

ALL $CVSROOT\path\to\bugz.txt

9. Edit the file loginfo to add one line of text to the end. If you're running on a Unix server, the line to add is

ALL perl -s /path/to/cvs/logBugData.pl "%{sVv}" On Windows, use this line:

ALL cscript.exe C:\path\to\logBugData.vbs "%{sVv}"

10. Edit the file checkoutlist, adding two lines at the end:

bugz.txt Error-bugz.txt logBugData.pl Error-logBugData.pl

11. Check in your changes by running cvs commit

0 0

Post a comment