changeset 4762:47091c8d028e

convert: move *** empty log message *** into commit class
author Brendan Cully <brendan@kublai.com>
date Sun, 01 Jul 2007 19:40:02 -0700
parents 7c8cd400e86a
children 8e9d3faec270
files hgext/convert/common.py hgext/convert/cvs.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/common.py	Sun Jul 01 19:23:10 2007 -0700
+++ b/hgext/convert/common.py	Sun Jul 01 19:40:02 2007 -0700
@@ -8,6 +8,8 @@
             if not x in parts:
                 raise util.Abort("commit missing field %s" % x)
         self.__dict__.update(parts)
+        if not self.desc or self.desc.isspace():
+            self.desc = '*** empty log message ***'
 
 class converter_source(object):
     """Conversion source interface"""
--- a/hgext/convert/cvs.py	Sun Jul 01 19:23:10 2007 -0700
+++ b/hgext/convert/cvs.py	Sun Jul 01 19:40:02 2007 -0700
@@ -80,8 +80,6 @@
                     if l == "Members: \n":
                         files = {}
                         log = self.recode(log[:-1])
-                        if log.isspace():
-                            log = "*** empty log message ***\n"
                         state = 2
                     else:
                         log += l