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	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