--- a/tests/test-evolve.t Thu Jan 09 11:33:15 2014 +0100
+++ b/tests/test-evolve.t Mon Apr 14 15:46:27 2014 -0400
@@ -675,3 +675,35 @@
A c
a
R a
+
+Test fold with commit messages
+
+ $ cd ../work
+ $ hg fold .^ --message "Folding with custom commit message"
+ 2 changesets folded
+ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ $ glog
+ @ 16:e6d8dace77a1@default(draft) Folding with custom commit message
+ |
+ o 13:e9c952d5bc4b@default(draft) dansk!
+ |
+ o 7:abe98aeaaa35@default(public) another feature
+ |
+ o 6:ba0ec09b1bab@default(public) a nifty feature
+ |
+ o 0:e55e0562ee93@default(public) base
+
+ $ cat > commit-message <<EOF
+ > A longer
+ > commit message
+ > EOF
+
+ $ hg fold .^ --logfile commit-message
+ 2 changesets folded
+ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ $ hg qlog
+ 17 - 2451d817c756 A longer
+ commit message (draft)
+ 7 - abe98aeaaa35 another feature (public)
+ 6 - ba0ec09b1bab a nifty feature (public)
+ 0 - e55e0562ee93 base (public)