Mercurial > hg
comparison hgext/bugzilla.py @ 7493:518afef5e350
Fix Bugzilla integration to work with new Bugzilla 3.2.
Bugzilla 3.2 changes the type of all MySQL tables it uses from MyISAM
to InnoDB. MyISAM does not support transactions, and performs an implied
commit after each update. InnoDB does support transactions, and so
exposes a bug where changes to the Bugzilla database were not committed,
and so with 3.2 are lost when the database connection closes.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Tue, 09 Dec 2008 09:58:13 +0000 |
parents | 87158be081b8 |
children | d8cd79fbed3c |
comparison
equal
deleted
inserted
replaced
7492:8649b2a3de75 | 7493:518afef5e350 |
---|---|
183 values (%s, %s, %s, %s)''', | 183 values (%s, %s, %s, %s)''', |
184 (bugid, userid, now, text)) | 184 (bugid, userid, now, text)) |
185 self.run('''insert into bugs_activity (bug_id, who, bug_when, fieldid) | 185 self.run('''insert into bugs_activity (bug_id, who, bug_when, fieldid) |
186 values (%s, %s, %s, %s)''', | 186 values (%s, %s, %s, %s)''', |
187 (bugid, userid, now, self.longdesc_id)) | 187 (bugid, userid, now, self.longdesc_id)) |
188 self.conn.commit() | |
188 | 189 |
189 class bugzilla_3_0(bugzilla_2_16): | 190 class bugzilla_3_0(bugzilla_2_16): |
190 '''support for bugzilla 3.0 series.''' | 191 '''support for bugzilla 3.0 series.''' |
191 | 192 |
192 def __init__(self, ui): | 193 def __init__(self, ui): |