tests/test-tag
changeset 11185 6d7cf82453be
parent 11063 eb23c876c111
child 11692 52e4ac3e63f7
--- a/tests/test-tag	Thu Jan 07 22:19:05 2010 -0600
+++ b/tests/test-tag	Sat May 15 23:33:22 2010 -0400
@@ -73,3 +73,13 @@
 hg branch tag-and-branch-same-name
 hg ci -m"discouraged"
 hg tag tag-and-branch-same-name
+
+echo '% test custom commit messages'
+cat > $HGTMP/editor <<'__EOF__'
+#!/bin/sh
+echo "custom tag message" > "$1"
+echo "second line" >> "$1"
+__EOF__
+chmod +x "$HGTMP"/editor
+HGEDITOR="'$HGTMP'"/editor hg tag custom-tag -e
+hg log -l1 --template "{desc}\n"