Hey Drew, please keep the feedback and questions coming :) I have two
pointers in mind.

1 - To set your custom bugzilla field, look at
Daemon/Integration.pm:change_resolution_in_all() which calls
Daemon/Bugzilla.pm:integration_change_bug_resolution. You need to extend
change_resolution_in_all to also issue an integration_set_custom_field,
which you must add in Bugzilla.pm, to set the field

http://bugzilla.mkgnu.net/show_bug.cgi?id=1183

NOTE however that a "fixed" bug may have work done on it among various
tags. You may tag 4 times, and have changes in all those 4 times before
you finally fix the bug. Be aware of this if you choose to follow this
route. Also, you may "fix" bugs without any SCM activity on them (e.g.
you debugged a bug report and concluded there's no bug and that's
expected behavior).

2 - Perhaps the VDD only requires tags to be given as input for "from"
and "to", but tags correspond to revision numbers -- maybe what you are
really asking is ... that we improve the VDD  to support this! You would
need to look at Tools/VDD_Generator.pm for that.

NOTE again that the VDD is quite more capable than what you asked for in
(1). It can show bugs fixed between revisions, bugs worked on between
revisions even though they have not been fixed, new bugs added, bugs
closed *without* any SCM activity on them, etc. The VDD document can be
futher tailored by copying and customizing:

/usr/share/scmbug/glue/templates/stylesheets/vdd.xsl

...so that you can have the VDD display only parts of all these things
(e.g. only bugs fixed, and bugs fixed with no SCM activity)


The long-term "fix" in my opinion is that the VDD Generator should be
corrected to produce this information, but this can be quite some work
because the backends expect tag names (versions) instead of revision
numbers for the tags. e.g. look at Bugzilla.pm:integration_get_vdd

http://bugzilla.mkgnu.net/show_bug.cgi?id=947

I'm afraid you are touching on issues we haven't ironed out yet
implementation-wise.


On Wed, 2008-06-04 at 18:32 -0400, Drew Marold wrote:
> I want to add into scmbug setting of a custom bugzilla field "fixed in
> revision" to the svn revision of the checkin that marks the bug as
> resolved:fixed. Can you give me a pointer as to which parts of the code
> I should be looking in ?
> 
> Basically we want to be able to query bugzilla and find all the bugs
> that were fixed between a set of revisions. Kind of like the vdd but we
> don't use tags so that doesn't help me. This is still a small/young
> company so I haven't really gotten a lot of cm best practices in place
> yet.
> 
> Thanks,
>       Drew
> 
> _______________________________________________
> scmbug-users mailing list
> [email protected]
> http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to