Test case for log --copies on non-linear manifests (issue391)
authorBrendan Cully <brendan@kublai.com>
Fri, 13 Oct 2006 09:58:55 -0700
changeset 3383 c7c6f1a45348
parent 3382 80721b86a448
child 3384 5e6c19919741
Test case for log --copies on non-linear manifests (issue391)
tests/test-log
tests/test-log.out
--- a/tests/test-log	Fri Oct 13 16:34:58 2006 +0200
+++ b/tests/test-log	Fri Oct 13 09:58:55 2006 -0700
@@ -32,6 +32,13 @@
 echo % log copies
 hg log -vC --template '{rev} {file_copies%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
+
 # log --follow tests
 hg init ../follow
 cd ../follow
--- a/tests/test-log.out	Fri Oct 13 16:34:58 2006 +0200
+++ b/tests/test-log.out	Fri Oct 13 09:58:55 2006 -0700
@@ -82,6 +82,10 @@
 2 dir/b (b)
 1 b (a)
 0 
+% log copies, non-linear manifest
+1 files updated, 0 files merged, 1 files removed, 0 files unresolved
+adding foo
+5 e (dir/b)
 adding base
 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 adding b1