diff tests/test-tag @ 11185:6d7cf82453be

tag: add -e/--edit option for modifying the commit message
author Steve Losh <steve@stevelosh.com>
date Sat, 15 May 2010 23:33:22 -0400 (2010-05-16)
parents eb23c876c111
children 52e4ac3e63f7
line wrap: on
line diff
--- a/tests/test-tag
+++ b/tests/test-tag
@@ -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"