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

Edouard Gomez ed.gomez at free.fr
Sun Dec 17 09:31:55 CST 2006

# HG changeset patch
# User Edouard Gomez <ed.gomez at free.fr>
# Date 1166365520 -3600
# Node ID e3815235f5190a0bc03e92814ba6c157ba82efb3
# Parent  e617e4f331a1fdbf8bb349f6e80fbd4c8d5ac154
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 e617e4f331a1 -r e3815235f519 hg-cvs-import
--- a/hg-cvs-import	Sun Dec 17 15:25:18 2006 +0100
+++ b/hg-cvs-import	Sun Dec 17 15:25:20 2006 +0100
@@ -146,7 +146,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