Debian Codegraph @

tests/t9605.py

raw symbols SCIP
1 #!/usr/bin/env python3
2 ## Testing for correct patchset estimation
3
4 # Structure of the test cvs repository
5 #
6 #Import of a trivial CVS repository fails due to a cvsps bug. Given the
7 #following series of commits:
8 #
9 # timestamp a b c message
10 # ------------------- --- --- --- -------
11 # 2012/12/12 21:09:39 1.1 changes are done
12 # 2012/12/12 21:09:44 1.1 changes
13 # 2012/12/12 21:09:46 1.2 changes
14 # 2012/12/12 21:09:50 1.1 1.3 changes are done
15 #
16 #cvsps mangles the commit ordering (edited for brevity):
17 #
18 # ---------------------
19 # PatchSet 1
20 # Date: 2012/12/12 15:09:39
21 # Log:
22 # changes are done
23 #
24 # Members:
25 # a:INITIAL->1.1
26 # b:INITIAL->1.1
27 # c:1.2->1.3
28 #
29 # ---------------------
30 # PatchSet 2
31 # Date: 2012/12/12 15:09:44
32 # Log:
33 # changes
34 #
35 # Members:
36 # c:INITIAL->1.1
37 #
38 # ---------------------
39 # PatchSet 3
40 # Date: 2012/12/12 15:09:46
41 # Log:
42 # changes
43 #
44 # Members:
45 # c:1.1->1.2
46 #
47 #This is seen in cvsps versions 2.x and up through at least 3.7.
48 #
49 # Reported by Chris Rorvick.
50
51 import sys, testlifter
52
53 testlifter.verbose += sys.argv[1:].count("-v")
54 cc = testlifter.ConvertComparison(stem="t9605", module="module")
55 cc.repo.retain = ("-k" in sys.argv[1:])
56 cc.compare_tree("branch", "master", True)
57 cc.cleanup()