| 1 |
#!/usr/bin/env python3 |
| 2 |
## Two-branch repo to test incremental dumping |
| 3 |
|
| 4 |
import sys, testlifter |
| 5 |
|
| 6 |
testlifter.verbose += sys.argv[1:].count("-v") |
| 7 |
repo = testlifter.CVSRepository("twobranch.repo") |
| 8 |
repo.init() |
| 9 |
repo.module("module") |
| 10 |
co = repo.checkout("module", "twobranch.checkout") |
| 11 |
|
| 12 |
co.write("README", "The quick brown fox jumped over the lazy dog.\n") |
| 13 |
co.add("README") |
| 14 |
co.commit("This is a sample commit") |
| 15 |
|
| 16 |
co.branch("samplebranch") |
| 17 |
|
| 18 |
co.write("README", |
| 19 |
"Now is the time for all good men to come to the aid of their country.\n") |
| 20 |
co.commit("This is another sample commit") |
| 21 |
|
| 22 |
co.switch("HEAD") |
| 23 |
|
| 24 |
co.write("README", |
| 25 |
"And now for something completely different.\n") |
| 26 |
co.commit("The obligatory Monty Python reference") |
| 27 |
|
| 28 |
co.switch("samplebranch") |
| 29 |
|
| 30 |
co.write("README", "This is random content for README.\n") |
| 31 |
co.commit(r"We will put the dump theshold before this commit.") |
| 32 |
|
| 33 |
co.switch("HEAD") |
| 34 |
|
| 35 |
co.write("README", "I'm back in the saddle again.\n") |
| 36 |
co.commit("This commit should alter the master branch.") |
| 37 |
|
| 38 |
repo.cleanup() |
| 39 |
|
| 40 |
# end |