[PATCH 1 of 1] transplant: when reading journal, treat only lines starting with "# " special like patch.extract() does

Georg Brandl georg at python.org
Sat Jun 19 05:53:05 CDT 2010


# HG changeset patch
# User Georg Brandl <georg at python.org>
# Date 1276944717 -7200
# Node ID c20ccf714b38686c4add70ee2f9412081a0c0a81
# Parent  e5a2134c083b223bd2998b6694e430e4999caee3
transplant: when reading journal, treat only lines starting with "# " special like patch.extract() does

diff -r e5a2134c083b -r c20ccf714b38 hgext/transplant.py
--- a/hgext/transplant.py	Fri Jun 18 17:34:13 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)


More information about the Mercurial-devel mailing list