CVS - Bugzilla integration

Dave Swegen dswegen at software.plasmon.com
Tue Jan 6 12:35:04 UTC 2004


On Tue, Jan 06, 2004 at 05:24:28PM +0530, Vijayan.R.A.Reddy wrote:
> Hi All,
> 
> We have a requirement to integrate CVS with Bugzilla, ie, with a checkin
> comment, if the engineer mentions the bugId, it should reflect the
> change in the bug status in Bugzilla, and then copy the check-in message
> to Bugzilla, and also, attach the diff as a patch in the bug report.
> 
> This is something we are planning to have, shortly. Has anyone done any
> work on these lines ?

We have something similiar working here. It doesn't do the bug status
changing thing, but does append commit messages to one or more specified
bugs. Neither does it append the diff as an attachments, but uses
ViewCVS to provide that (and more) functionality (see below).

The bug comment in bugzilla ends up containing the message, the module
name, the filename(s), old version number and new version numbers, as
well as any tag/branch info.

We also have implemented autolinkification to ViewCVS, such that the
filename links to file info in ViewCVS, version numbers will show the
relevant revisions of the files, and an extra link that points to the
diff is added.

Patches against bugzilla 2.17.1 can be found here:

http://bugzilla.mozilla.org/show_bug.cgi?id=199116

As can be seen from the comments I'm slowly working on a) making it work
against tip, and b) drop the email requirement.

Thinking about it, adding the code to deal with status changes shouldn't
be too hard. It would probably involve parsing one more line, and a bit
more sql.

Anyway, take a look at it and shout if something is unclear.

Cheers
    Dave



More information about the developers mailing list