Mercurial > hg
diff tests/test-log @ 11562:efbc09fdefd8 stable
test-log: Add test for "hg log -pf" (issue647)
To test f786fc4b8764 we analyze this repo:
0 | 1 | 2 | 3 | 4
a ------------> b
\
b -> dir/b -------> e
d
We follow dir/b and expects rev 0, 1 and 2.
A log following b will surprisingly report rev 0 and 1. That's because the
content and the parents are the same in rev 1 and rev 3, and the revlog entry
from rev 1 is thus reused in rev 3 even though the revlink is incorrect.
Note that if we follow e then we will get all revs, including rev 3, because b
gets added to the set of interesting filenames we are following through all
revisions. That might be surprising, but that's (currently) how it is.
Original test case by Joel Rosdahl <joel@rosdahl.net>
Original test reviewed by Nicolas Dumazet <nicdumz@gmail.com>
author | Joel Rosdahl <joel@rosdahl.net> |
---|---|
date | Thu, 08 Jul 2010 22:44:15 +0200 |
parents | 2eaaad99f2f0 |
children | dbb98d8fbcaf 28ddf67198b2 |
line wrap: on
line diff
--- a/tests/test-log Wed Jul 14 11:02:20 2010 -0400 +++ b/tests/test-log Thu Jul 08 22:44:15 2010 +0200 @@ -31,6 +31,11 @@ echo % many renames hg log -vf e +echo % log -pf dir/b +hg log -pf dir/b +echo % log -vf dir/b +hg log -vf dir/b + echo '% log copies with --copies' hg log -vC --template '{rev} {file_copies}\n' echo '% log copies switch without --copies, with old filecopy template'