convert/cvsps: use set.update for bulk update
authorMartin Geisler <mg@lazybytes.net>
Sun, 17 May 2009 16:57:40 +0200
changeset 8483 221786b9ce34
parent 8482 fc27c91fff2c
child 8484 15573b5dc78f
convert/cvsps: use set.update for bulk update
hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py	Sun May 17 16:57:12 2009 +0200
+++ b/hgext/convert/cvsps.py	Sun May 17 16:57:40 2009 +0200
@@ -572,8 +572,7 @@
     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)