bugzilla: rename filter_unknown_bug_ids to reflect its actual purpose.
The method really removes from the list of bugs any that already have
comment text referencing the changeset in question. Rename it to
filter_cset_known_bug_ids().
--- a/hgext/bugzilla.py Tue Mar 29 19:20:28 2011 +0200
+++ b/hgext/bugzilla.py Wed Mar 30 09:49:45 2011 +0100
@@ -194,7 +194,7 @@
self.run('select bug_id from bugs where bug_id in %s' % buglist(ids))
return sorted([c[0] for c in self.cursor.fetchall()])
- def filter_unknown_bug_ids(self, node, ids):
+ def filter_cset_known_bug_ids(self, node, ids):
'''filter bug ids from list that already refer to this changeset.'''
self.run('''select bug_id from longdescs where
@@ -376,7 +376,7 @@
if ids:
ids = self.filter_real_bug_ids(ids)
if ids:
- ids = self.filter_unknown_bug_ids(ctx.node(), ids)
+ ids = self.filter_cset_known_bug_ids(ctx.node(), ids)
return ids
def update(self, bugid, ctx):