Debian Codegraph @

tests/longrev.tst

raw
1 #!/usr/bin/env python3
2 ## A widely branched repo with long file revision strings.
3
4 import sys, testlifter
5
6 testlifter.verbose += sys.argv[1:].count("-v")
7 repo = testlifter.CVSRepository("longrev.repo")
8 repo.init()
9 repo.module("module")
10 co = repo.checkout("module", "longrev.checkout")
11
12 co.write("README", "A test of multiple tags.\n")
13 co.add("README")
14 co.commit("Initial revision")
15
16 for i in range(10):
17 branchname = ("branch%s" % (i+1))
18 co.branch( branchname )
19 co.switch( branchname )
20
21 co.write("README", branchname)
22 co.commit("Updated for " + branchname)
23
24 repo.cleanup()