changeset 4518:3e4aa4c9efe4

convert: map CVS HEAD to default branch
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 07 Jun 2007 12:41:12 +0200
parents 5371a213b0f4
children 5a9e767c2908
files hgext/convert/__init__.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py
+++ b/hgext/convert/__init__.py
@@ -177,6 +177,8 @@ class convert_cvs(converter_source):
                         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