# HG changeset patch # User Jim Hague # Date 2011-03-30 08:49:45 # Node ID 9c9fa78f4e2d28ff7f6b7b79a6fdd0604c5312c4 # Parent 16d5e80876de57e7aa469ac58d1b61149134f274 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(). diff --git a/hgext/bugzilla.py b/hgext/bugzilla.py --- a/hgext/bugzilla.py +++ b/hgext/bugzilla.py @@ -194,7 +194,7 @@ class bugzilla_2_16(object): 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 @@ class bugzilla(object): 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):