Debian Codegraph @

tests/linear.tst

raw
1 #!/usr/bin/env python3
2 ## simplest possible linear repository with multiple commits
3
4 import sys, testlifter
5
6 testlifter.verbose += sys.argv[1:].count("-v")
7 repo = testlifter.CVSRepository("linear.repo")
8 repo.init()
9 repo.module("module")
10 co = repo.checkout("module", "linear.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.write("README", "And now for something completely different.\n")
17 co.commit("This is a second sample commit")
18
19 repo.cleanup()
20
21 # end