Debian Codegraph @

tests/tagbug.tst

raw
1 #!/usr/bin/env python3
2 ## Tricky tag corner case
3
4 import sys, testlifter
5
6 testlifter.verbose += sys.argv[1:].count("-v")
7 repo = testlifter.CVSRepository("tagbug.repo")
8 repo.init()
9 repo.module("module")
10 co = repo.checkout("module", "tagbug.checkout")
11
12 co.write("foo.c", "The quick brown fox jumped over the lazy dog.\n")
13 co.add("foo.c")
14 co.write("bar.c", "Not an obfuscated C contest entry.\n")
15 co.add("bar.c")
16 co.commit("First commit")
17
18 co.remove("bar.c")
19 co.commit("Second commit")
20
21 co.tag("tag")
22
23 repo.cleanup()
24
25 # end