File: expand.tst

package info (click to toggle)
cvs-fast-export 1.44-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,248 kB
  • sloc: ansic: 6,419; python: 1,395; lex: 352; sh: 300; yacc: 266; makefile: 260; perl: 64
file content (26 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python
## Test keyword expansion

import sys, testlifter

testlifter.verbose += sys.argv[1:].count("-v")
repo = testlifter.CVSRepository("expand.repo")
repo.init()
repo.module("module")
co = repo.checkout("module", "expand.checkout")

co.write("README", "$Revision$ should expand to something with 1.1 in it.\n")
co.add("README")
co.commit("This is a sample commit")

co.do("admin", "-kkv", "README")

co.write("README", "$Revision$ should expand to something with 1.2 in it.\n")
co.commit("This is another sample commit")

co.write("README", "$Revision: (this should go away) $ should expand to someting with 1.3 in it.\n")
co.commit("Yet another sample commit")

repo.cleanup()

# end