convert: map CVS HEAD to default branch
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 07 Jun 2007 12:41:12 +0200
changeset 4518 3e4aa4c9efe4
parent 4517 5371a213b0f4
child 4519 5a9e767c2908
convert: map CVS HEAD to default branch
hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	Sun Jun 03 22:11:25 2007 +0200
+++ b/hgext/convert/__init__.py	Thu Jun 07 12:41:12 2007 +0200
@@ -177,6 +177,8 @@
                         p = [self.parent[id]]
                         if id == "1":
                             p = []
+                        if branch == "HEAD":
+                            branch = ""
                         c = commit(author=author, date=date, parents=p,
                                    desc=log, branch=branch)
                         self.changeset[id] = c