equal
deleted
inserted
replaced
15 echo "# should print a warning that this is not a real copy; foo is added" |
15 echo "# should print a warning that this is not a real copy; foo is added" |
16 hg cp bar foo |
16 hg cp bar foo |
17 hg rm -f bar |
17 hg rm -f bar |
18 rm bar |
18 rm bar |
19 hg st -A |
19 hg st -A |
20 hg commit -m1 -d"0 0" |
20 hg commit -m1 |
21 |
21 |
22 echo "# dry-run; should show that foo is clean" |
22 echo "# dry-run; should show that foo is clean" |
23 hg copy --dry-run foo bar |
23 hg copy --dry-run foo bar |
24 hg st -A |
24 hg st -A |
25 echo "# should show copy" |
25 echo "# should show copy" |
26 hg copy foo bar |
26 hg copy foo bar |
27 hg st -C |
27 hg st -C |
28 |
28 |
29 echo "# shouldn't show copy" |
29 echo "# shouldn't show copy" |
30 hg commit -m2 -d"0 0" |
30 hg commit -m2 |
31 hg st -C |
31 hg st -C |
32 |
32 |
33 echo "# should match" |
33 echo "# should match" |
34 hg debugindex .hg/store/data/foo.i |
34 hg debugindex .hg/store/data/foo.i |
35 hg debugrename bar |
35 hg debugrename bar |
36 |
36 |
37 echo bleah > foo |
37 echo bleah > foo |
38 echo quux > bar |
38 echo quux > bar |
39 hg commit -m3 -d"0 0" |
39 hg commit -m3 |
40 |
40 |
41 echo "# should not be renamed" |
41 echo "# should not be renamed" |
42 hg debugrename bar |
42 hg debugrename bar |
43 |
43 |
44 hg copy -f foo bar |
44 hg copy -f foo bar |
45 echo "# should show copy" |
45 echo "# should show copy" |
46 hg st -C |
46 hg st -C |
47 hg commit -m3 -d"0 0" |
47 hg commit -m3 |
48 |
48 |
49 echo "# should show no parents for tip" |
49 echo "# should show no parents for tip" |
50 hg debugindex .hg/store/data/bar.i |
50 hg debugindex .hg/store/data/bar.i |
51 echo "# should match" |
51 echo "# should match" |
52 hg debugindex .hg/store/data/foo.i |
52 hg debugindex .hg/store/data/foo.i |