Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-copy2 @ 1252:94f38724283f
The copy tests don't need to invoke cp any longer.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 14 Sep 2005 16:31:03 -0700 |
parents | a5355fa5e33a |
children | c0b449154a90 |
comparison
equal
deleted
inserted
replaced
1251:84cf8834efb5 | 1252:94f38724283f |
---|---|
4 echo foo > foo | 4 echo foo > foo |
5 hg add foo | 5 hg add foo |
6 hg commit -m1 -d"0 0" | 6 hg commit -m1 -d"0 0" |
7 | 7 |
8 echo "# should show copy" | 8 echo "# should show copy" |
9 cp foo bar | |
10 hg copy foo bar | 9 hg copy foo bar |
11 hg debugstate|grep '^copy' | 10 hg debugstate|grep '^copy' |
12 | 11 |
13 echo "# shouldn't show copy" | 12 echo "# shouldn't show copy" |
14 hg commit -m2 -d"0 0" | 13 hg commit -m2 -d"0 0" |
23 hg commit -m3 -d"0 0" | 22 hg commit -m3 -d"0 0" |
24 | 23 |
25 echo "# should not be renamed" | 24 echo "# should not be renamed" |
26 hg debugrename bar | 25 hg debugrename bar |
27 | 26 |
28 cp foo bar | |
29 hg copy -f foo bar | 27 hg copy -f foo bar |
30 echo "# should show copy" | 28 echo "# should show copy" |
31 hg debugstate|grep '^copy' | 29 hg debugstate|grep '^copy' |
32 hg commit -m3 -d"0 0" | 30 hg commit -m3 -d"0 0" |
33 | 31 |