diff tests/test-log @ 10060:f780b1098efc

templatekw: change {file_copies} behaviour, add {file_copies_switch} {file_copies} template now displays file copies with or without the --copies switch being set. A new {file_copies_switch} template implements the former behaviour.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 13 Dec 2009 18:06:24 +0100
parents c8e4dc218aaf
children 9e2ab10728a2
line wrap: on
line diff
--- a/tests/test-log	Sun Dec 13 18:06:24 2009 +0100
+++ b/tests/test-log	Sun Dec 13 18:06:24 2009 +0100
@@ -31,20 +31,24 @@
 echo % many renames
 hg log -vf e
 
-echo % log copies
+echo '% log copies with --copies'
 hg log -vC --template '{rev} {file_copies%filecopy}\n'
+echo '% log copies switch without --copies'
+hg log -v --template '{rev} {file_copies_switch%filecopy}\n'
+echo '% log copies switch with --copies'
+hg log -vC --template '{rev} {file_copies_switch%filecopy}\n'
 
 echo % log copies, non-linear manifest
 hg up -C 3
 hg mv dir/b e
 echo foo > foo
 hg ci -Ame2 -d '6 0'
-hg log -vC --template '{rev} {file_copies%filecopy}\n' -r 5
+hg log -v --template '{rev} {file_copies%filecopy}\n' -r 5
 
 echo % log copies, execute bit set
 chmod +x e
 hg ci -me3 -d '7 0'
-hg log -vC --template '{rev} {file_copies%filecopy}\n' -r 6
+hg log -v --template '{rev} {file_copies%filecopy}\n' -r 6
 
 echo '% log -p d'
 hg log -pv d