changeset 8483:221786b9ce34

convert/cvsps: use set.update for bulk update
author Martin Geisler <mg@lazybytes.net>
date Sun, 17 May 2009 16:57:40 +0200
parents fc27c91fff2c
children 15573b5dc78f
files hgext/convert/cvsps.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)