changeset 10776:08870cf7d388 stable

Fix default style so 'log --copies' has a start and an end.
author Greg Ward <greg-hg@gerg.ca>
date Thu, 25 Mar 2010 15:37:39 -0400
parents c52057614c72
children b9532264cb8b
files mercurial/templates/map-cmdline.default tests/test-log tests/test-log.out
diffstat 3 files changed, 27 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templates/map-cmdline.default	Wed Mar 24 01:43:24 2010 +0100
+++ b/mercurial/templates/map-cmdline.default	Thu Mar 25 15:37:39 2010 -0400
@@ -14,9 +14,9 @@
 start_file_dels = 'files-:     '
 file_del = ' {file_del}'
 end_file_dels = '\n'
-start_file_copies_switch = 'copies:     '
+start_file_copies = 'copies:     '
 file_copy = ' {name} ({source})'
-end_file_copies_switch = '\n'
+end_file_copies = '\n'
 parent = 'parent:      {rev}:{node|formatnode}\n'
 manifest = 'manifest:    {rev}:{node}\n'
 branch = 'branch:      {branch}\n'
--- a/tests/test-log	Wed Mar 24 01:43:24 2010 +0100
+++ b/tests/test-log	Thu Mar 25 15:37:39 2010 -0400
@@ -38,6 +38,10 @@
 echo '% log copies switch with --copies'
 hg log -vC --template '{rev} {file_copies_switch}\n'
 
+echo '% log copies with hardcoded style and with --style=default'
+hg log -vC -r4
+hg log -vC -r4 --style=default
+
 echo % log copies, non-linear manifest
 hg up -C 3
 hg mv dir/b e
--- a/tests/test-log.out	Wed Mar 24 01:43:24 2010 +0100
+++ b/tests/test-log.out	Thu Mar 25 15:37:39 2010 -0400
@@ -94,6 +94,27 @@
 2 dir/b (b)
 1 b (a)
 0 
+% log copies with hardcoded style and with --style=default
+changeset:   4:66c1345dc4f9
+tag:         tip
+user:        test
+date:        Thu Jan 01 00:00:05 1970 +0000
+files:       dir/b e
+copies:      e (dir/b)
+description:
+e
+
+
+changeset:   4:66c1345dc4f9
+tag:         tip
+user:        test
+date:        Thu Jan 01 00:00:05 1970 +0000
+files:       dir/b e
+copies:      e (dir/b)
+description:
+e
+
+
 % log copies, non-linear manifest
 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
 adding foo