Integrate flyspray with CVSWeb

Currently I’m using flyspray for bug tracking.
I use cvsweb to view the cvs tree online.

One thing that I really wanted was to be able to click one bug numbers in the cvs log reports and see the bug tracking entry that matches it.
It turns out this is amazingly simple. I added the following code to the cvsweb.cgi file inside the htmlify function, just below the bit that does the urls. (new section in bold)

# get URL's as link
s{
((https?|ftp)://.+?)([s']|&(quot|[lg]t);)
}{
&link($1, htmlunquote($1)) . $3
}egx;


# replace FS with correct bug track link in flyspray
s{
FS#([0-9]+)
}{
&link("[$1]","/flyspray/index.php?do=details&id=$1")
}egx;


# get e-mails as link

And now my cvs logs display a link whenever I use FS#100 or a similar bug number. Next I suppose is to integrate it the other way and have the cvs system automatically close resolved issues in flyspray. There is actually already some code for subversion so it wouldn’t be very hard to implement probably (but there are better things to do with my time).

[edit]
subversion code is at http://flyspray.rocks.cc/bts/index.php?do=details&id=310&area=attachments#tabs

This entry was posted in Internet Stuff, Writing Software. Bookmark the permalink.

One Response to Integrate flyspray with CVSWeb

  1. Anon says:

    Could you provide a link to the code that integrates flyspray and subversion?
    Thanks!

Leave a Reply