Commits

edgimar  committed 4e2c6a7

- add HG: lines to commit message also when the 'message' option wasn't set

  • Participants
  • Parent commits 08b23be

Comments (0)

Files changed (1)

File crecord/chunk_selector.py

         opts['crecord_reviewpatch'] = False
 
         try:
-            self.commentText = opts['message'] + \
-                textwrap.dedent("""
-                
-                HG: Enter/resume commit message.  Lines beginning with 'HG:' are removed.
-                HG: You can save this message, and edit it again later before committing.
-                HG: After exiting the editor, you will return to the crecord patch view.
-                HG: --
-                HG: user: %s""" % self.ui.username())
-
+            self.commentText = opts['message']
         except KeyError:
             pass
 
+        self.commentText += textwrap.dedent("""
+        
+        HG: Enter/resume commit message.  Lines beginning with 'HG:' are removed.
+        HG: You can save this message, and edit it again later before committing.
+        HG: After exiting the editor, you will return to the crecord patch view.
+        HG: --
+        HG: user: %s""" % self.ui.username())
+
         while True:
             self.updateScreen()
             try: