[PATCH 8 of 8] cvsps: remove is-comparisons with non-singletons

Dan Villiom Podlaski Christiansen danchr at gmail.com
Tue Nov 16 14:36:19 CST 2010


# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
# Date 1289939758 -3600
# Branch stable
# Node ID 05d1044efdf7e9c3b3feefb48bf19ae0d62a128a
# Parent  cc1abbd22d4ae99c4c096c2d7682d7758de583d2
cvsps: remove is-comparisons with non-singletons.

diff --git a/hgext/convert/cvsps.py b/hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py
+++ b/hgext/convert/cvsps.py
@@ -618,7 +618,7 @@ def createchangeset(ui, log, fuzz=60, me
         for e in c.entries:
             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)
+        c.tags = sorted(tag for tag in tags if globaltags[tag] == c)
 
     # Find parent changesets, handle {{mergetobranch BRANCHNAME}}
     # by inserting dummy changesets with two parents, and handle


More information about the Mercurial-devel mailing list