[PATCH 09 of 12] Don't add neither funky nor invalid nor head tags

Edouard Gomez ed.gomez at free.fr
Tue Dec 19 00:05:50 CST 2006


# HG changeset patch
# User Edouard Gomez <ed.gomez at free.fr>
# Date 1166511815 -3600
# Node ID 56dd51946b9af4af60ede7112542dc96bf8063af
# Parent  20f490e5eae2422977172ff75e123c083cb29ac8
Don't add neither funky nor invalid nor head tags

It doesn't seem right to tag funky and invalid tags
Head tag may be right, but i think it was just a way for CVS to create
a sticky tag so avoid tagging that in hg, we already have the branch.

diff -r 20f490e5eae2 -r 56dd51946b9a hg-cvs-import
--- a/hg-cvs-import	Tue Dec 19 08:03:35 2006 +0100
+++ b/hg-cvs-import	Tue Dec 19 08:03:35 2006 +0100
@@ -147,7 +147,8 @@ def finish_checkout(f, file):
 
 def addtag(tag, rev):
     global alltags
-    alltags.setdefault(util.fromlocal(tag), []).append(rev)
+    if tag != 'HEAD' and '**FUNKY**' not in tag and '**INVALID**' not in tag:
+        alltags.setdefault(util.fromlocal(tag), []).append(rev)
 
 def committags(patchset):
     global alltags


More information about the Mercurial-devel mailing list