Mercurial > hg
changeset 16876:fdc879042414 stable
bugzilla: stop bugs always being marked as fixed in xmlrpc (issue3484)
Bugs should only be marked fixed if the comment parser gives them the
fixed state. xmlrpc+email got this right, xmlrpc screwed it up.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Wed, 06 Jun 2012 16:44:17 +0100 |
parents | 00e1e40d709c |
children | 6e578e77cbe6 |
files | hgext/bugzilla.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/bugzilla.py Mon Jun 04 17:22:09 2012 -0500 +++ b/hgext/bugzilla.py Wed Jun 06 16:44:17 2012 +0100 @@ -654,8 +654,9 @@ if self.bzvermajor >= 4: args['ids'] = [bugid] args['comment'] = {'body' : text} - args['status'] = self.fixstatus - args['resolution'] = self.fixresolution + if 'fix' in newstate: + args['status'] = self.fixstatus + args['resolution'] = self.fixresolution self.bzproxy.Bug.update(args) else: if 'fix' in newstate: