hgext/qsync.py
changeset 249 bd0917068cc7
parent 228 5a17c0d41a00
child 251 a60d11973ff3
--- a/hgext/qsync.py	Tue May 22 10:35:04 2012 +0200
+++ b/hgext/qsync.py	Thu May 24 00:24:40 2012 +0200
@@ -107,8 +107,10 @@
                         assert False, "Should be exported"
 
     if review:
-        message += '\n'.join('* applied %s' % x for x in applied_list)
-        message += '\n'.join('* %s ready for review' % x for x in review_list)
+        if applied_list:
+            message += '\n'.join('* applied %s' % x for x in applied_list) + '\n'
+        if review_list:
+            message += '\n'.join('* %s ready for review' % x for x in review_list) + '\n'
     memctx = patch.makememctx(mqrepo, (parent.node(), nullid),
                               message,
                               None,