# HG changeset patch # User Martin Geisler # Date 2009-05-17 14:57:40 # Node ID 221786b9ce3431df4ac08dd86aef8e419d5fca99 # Parent fc27c91fff2c3f014faa24ca3134338772bee8e8 convert/cvsps: use set.update for bulk update diff --git a/hgext/convert/cvsps.py b/hgext/convert/cvsps.py --- a/hgext/convert/cvsps.py +++ b/hgext/convert/cvsps.py @@ -572,8 +572,7 @@ def createchangeset(ui, log, fuzz=60, me for c in changesets: tags = set() for e in c.entries: - for tag in e.tags: - tags.add(tag) + tags.update(e.tags) # remember tags only if this is the latest changeset to have it c.tags = sorted(tag for tag in tags if globaltags[tag] is c)