| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
''' |
| 9 |
This repository is for testing the ability to group revisions |
| 10 |
correctly along tags and branches. Here is its history: |
| 11 |
|
| 12 |
1. The initial import (revision 1.1 of everybody) created a |
| 13 |
directory structure with a file named "default" in each dir: |
| 14 |
|
| 15 |
./ |
| 16 |
default |
| 17 |
sub1/default |
| 18 |
subsubA/default |
| 19 |
subsubB/default |
| 20 |
sub2/default |
| 21 |
subsubA/default |
| 22 |
sub3/default |
| 23 |
|
| 24 |
2. Then tagged everyone with T_ALL_INITIAL_FILES. |
| 25 |
|
| 26 |
3. Then tagged everyone except sub1/subsubB/default with |
| 27 |
T_ALL_INITIAL_FILES_BUT_ONE. |
| 28 |
|
| 29 |
4. Then created branch B_FROM_INITIALS on everyone. |
| 30 |
|
| 31 |
5. Then created branch B_FROM_INITIALS_BUT_ONE on everyone except |
| 32 |
/sub1/subsubB/default. |
| 33 |
|
| 34 |
6. Then committed modifications to two files: sub3/default, and |
| 35 |
sub1/subsubA/default. |
| 36 |
|
| 37 |
7. Then committed a modification to all 7 files. |
| 38 |
|
| 39 |
8. Then backdated sub3/default to revision 1.2, and |
| 40 |
sub2/subsubA/default to revision 1.1, and tagged with T_MIXED. |
| 41 |
|
| 42 |
9. Same as 8, but tagged with -b to create branch B_MIXED. |
| 43 |
|
| 44 |
10. Switched the working copy to B_MIXED, and added |
| 45 |
sub2/branch_B_MIXED_only. (That is why the RCS file is in |
| 46 |
sub2/Attic/ -- it never existed on trunk.) |
| 47 |
|
| 48 |
11. In one commit, modified default, sub1/default, and |
| 49 |
sub2/subsubA/default, on branch B_MIXED. |
| 50 |
|
| 51 |
12. Did "cvs up -A" on sub2/default, then in one commit, made a |
| 52 |
change to sub2/default and sub2/branch_B_MIXED_only. So this |
| 53 |
commit should be spread between the branch and the trunk. |
| 54 |
|
| 55 |
13. Do "cvs up -A" to get everyone back to trunk, then make a new |
| 56 |
branch B_SPLIT on everyone except sub1/subsubB/default,v. |
| 57 |
|
| 58 |
14. Switch to branch B_SPLIT (see sub1/subsubB/default disappear) |
| 59 |
and commit a change that affects everyone except sub3/default. |
| 60 |
|
| 61 |
15. An hour or so later, "cvs up -A" to get sub1/subsubB/default |
| 62 |
back, then commit a change on that file, on trunk. (It is |
| 63 |
important that this change happened after the previous commits |
| 64 |
on B_SPLIT.) |
| 65 |
|
| 66 |
16. Branch sub1/subsubB/default to B_SPLIT, then "cvs up -r B_SPLIT" |
| 67 |
to switch the whole working copy to the branch. |
| 68 |
|
| 69 |
17. Commit a change on B_SPLIT, to sub1/subsubB/default and |
| 70 |
sub3/default. |
| 71 |
''' |
| 72 |
|
| 73 |
import sys, testlifter |
| 74 |
|
| 75 |
testlifter.verbose += sys.argv[1:].count("-v") |
| 76 |
cc = testlifter.ConvertComparison(stem="t9602", module="module") |
| 77 |
cc.repo.retain = ("-k" in sys.argv[1:]) |
| 78 |
cc.compare_tree("branch", "master", True) |
| 79 |
cc.compare_tree("branch", "vendorbranch", True) |
| 80 |
cc.compare_tree("branch", "B_FROM_INITIALS", True) |
| 81 |
cc.compare_tree("branch", "B_FROM_INITIALS_BUT_ONE", False) |
| 82 |
cc.compare_tree("branch", "B_MIXED", True) |
| 83 |
cc.compare_tree("branch", "B_SPLIT", True) |
| 84 |
cc.compare_tree("tag", "vendortag", True) |
| 85 |
cc.compare_tree("tag", "T_ALL_INITIAL_FILES", True) |
| 86 |
cc.compare_tree("tag", "T_ALL_INITIAL_FILES_BUT_ONE", True) |
| 87 |
cc.compare_tree("tag", "T_MIXED", True) |
| 88 |
cc.cleanup() |