Hi all,

Just a thought to consider: another autolinkification method that is available 
if you are using Firefox is to create a Greasemonkey 
(http://greasemonkey.mozdev.org/) plugin.  It is obviously not quite as 
accessible to your whole team since they need to do some extra things to get 
the autolinkification (install Greasemonkey and your JavaScript code, although 
both of those are easy), and it has the drawback of having to traverse the DOM 
tree from Bugzilla (which could easily change between Bugzilla releases) and 
the text output from Scmbug (which can also change) but at least you don't have 
to have any fear of breaking Scmbug since you're not modifying it at all.

The GreaseMonkey "user script" I made for our organisation inserts a table 
after the Scmbug output with links to WebSVN for the old and new versions of 
each file (unless of course they are 'NONE'), the diffs for each file (unless 
it was added or removed), and the diffs for the whole commit.  I'm afraid I 
can't offer the code right now as our company is going through some major 
changes, but hopefully once they are sorted out I'll be able to get someone to 
approve the code release (I hope those are not famous last words :) ).

Regards,
David


----------------------------------------------
David O'Shea
Engineer
DSpace Pty Ltd

[EMAIL PROTECTED]
www.dspace.com.au
T: +61 8 8260 8118


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Marcel Loose
> Sent: Monday, 2 July 2007 22:03
> To: [email protected]
> Subject: [scmbug-users] Extension of Aleksey's autolinkification patch
> forBugzilla
> 
> 
> Hi all,
> 
> We're considering to switch from CVS to Subversion. We had our own
> home-brewn glue between CVS, Bugzilla and CVSweb to do
> autolinkification, which obviously won't work with Subversion. Since
> Scmbug provides the same kind of functionality for a number of SCM
> systems we're seriously considering to use it. 
> 
> I found a patch by Aleksey
> (http://bugzilla.mkgnu.net/show_bug.cgi?id=266) to do
> autolinkification more or less the way we did it, but I missed some
> hyperlinks. So I started to hack a bit of Perl myself.
> 
> It's my first piece of real Perl code, so it will probably have some
> rough edges. Please feel free to modify/improve/... it. I 
> think the code
> is self-explanatory. I wanted to send it as an attachment for the
> aforementioned bug, but I did not have a legitimate login name, so I
> attached it to this mail.
> 
> Note: for Bugzilla 2.22.x the trick with defparams.pl does 
> not work and
> I haven't been able to figure out how to do it the proper way using
> template hooks. Anyone?
> 
> Regards,
> 
> Marcel Loose
> 
> 
> 
> 
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to