Mercurial > hg
comparison 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 |
parents | eb23c876c111 |
children | 52e4ac3e63f7 |
comparison
equal
deleted
inserted
replaced
11184:7d99edddbaea | 11185:6d7cf82453be |
---|---|
71 | 71 |
72 echo % tag and branch using same name | 72 echo % tag and branch using same name |
73 hg branch tag-and-branch-same-name | 73 hg branch tag-and-branch-same-name |
74 hg ci -m"discouraged" | 74 hg ci -m"discouraged" |
75 hg tag tag-and-branch-same-name | 75 hg tag tag-and-branch-same-name |
76 | |
77 echo '% test custom commit messages' | |
78 cat > $HGTMP/editor <<'__EOF__' | |
79 #!/bin/sh | |
80 echo "custom tag message" > "$1" | |
81 echo "second line" >> "$1" | |
82 __EOF__ | |
83 chmod +x "$HGTMP"/editor | |
84 HGEDITOR="'$HGTMP'"/editor hg tag custom-tag -e | |
85 hg log -l1 --template "{desc}\n" |