transplant: when reading journal, treat only lines starting with "# " special like patch.extract() does
authorGeorg Brandl <georg@python.org>
Sat, 19 Jun 2010 12:51:57 +0200
changeset 11411 5834e79b24f7
parent 11410 38d4c9b953fe
child 11412 51ceb1571805
transplant: when reading journal, treat only lines starting with "# " special like patch.extract() does
hgext/transplant.py
--- a/hgext/transplant.py	Sun Jun 20 14:21:47 2010 -0500
+++ b/hgext/transplant.py	Sat Jun 19 12:51:57 2010 +0200
@@ -341,7 +341,7 @@
                 node = revlog.bin(line[10:])
             elif line.startswith('# Parent '):
                 parents.append(revlog.bin(line[9:]))
-            elif not line.startswith('#'):
+            elif not line.startswith('# '):
                 inmsg = True
                 message.append(line)
         return (node, user, date, '\n'.join(message), parents)