convert: move *** empty log message *** into commit class
authorBrendan Cully <brendan@kublai.com>
Sun, 01 Jul 2007 19:40:02 -0700
changeset 4762 47091c8d028e
parent 4761 7c8cd400e86a
child 4763 8e9d3faec270
convert: move *** empty log message *** into commit class
hgext/convert/common.py
hgext/convert/cvs.py
--- 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