diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-09-05 09:57:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-09-05 09:57:35 +0200 |
commit | 7ceacdffc5c05f9a763b4cb6ea7cb528004643c3 (patch) | |
tree | 309b7e02e247486812f49ab83b34646b7508b51d /t/t9400-git-cvsserver-server.sh | |
parent | diff --cumulative is a sub-option of --dirstat (diff) | |
download | git-7ceacdffc5c05f9a763b4cb6ea7cb528004643c3.tar.xz git-7ceacdffc5c05f9a763b4cb6ea7cb528004643c3.zip |
"blame -c" should be compatible with "annotate"
There is no reason to have a separate variable cmd_is_annotate;
OUTPUT_ANNOTATE_COMPAT option is supposed to produce the compatibility
output, and we should produce the same output even when the command was
not invoked as "annotate" but as "blame -c".
Noticed by Pasky.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9400-git-cvsserver-server.sh')
-rwxr-xr-x | t/t9400-git-cvsserver-server.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t9400-git-cvsserver-server.sh b/t/t9400-git-cvsserver-server.sh index 4b91f8d4c4..c1850d2923 100755 --- a/t/t9400-git-cvsserver-server.sh +++ b/t/t9400-git-cvsserver-server.sh @@ -488,4 +488,17 @@ test_expect_success 'cvs co -c (shows module database)' ' ! grep -v "^master[ ]\+master$" < out ' +#------------ +# CVS ANNOTATE +#------------ + +cd "$WORKDIR" +test_expect_success 'cvs annotate' ' + cd cvswork && + GIT_CONFIG="$git_config" cvs annotate merge >../out && + sed -e "s/ .*//" ../out >../actual && + for i in 3 1 1 1 1 1 1 1 2 4; do echo 1.$i; done >../expect && + test_cmp ../expect ../actual +' + test_done |