File: t9605.py

package info (click to toggle)
cvs-fast-export 1.59-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,960 kB
  • sloc: ansic: 5,743; python: 1,391; sh: 532; lex: 352; yacc: 273; makefile: 249; perl: 99
file content (57 lines) | stat: -rw-r--r-- 1,380 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python3
## Testing for correct patchset estimation

# Structure of the test cvs repository
#
#Import of a trivial CVS repository fails due to a cvsps bug.  Given the
#following series of commits:
#
#    timestamp             a    b    c   message
#    -------------------  ---  ---  ---  -------
#    2012/12/12 21:09:39  1.1            changes are done
#    2012/12/12 21:09:44            1.1  changes
#    2012/12/12 21:09:46            1.2  changes
#    2012/12/12 21:09:50       1.1  1.3  changes are done
#
#cvsps mangles the commit ordering (edited for brevity):
#
#    ---------------------
#    PatchSet 1
#    Date: 2012/12/12 15:09:39
#    Log:
#    changes are done
#
#    Members:
#        a:INITIAL->1.1
#        b:INITIAL->1.1
#        c:1.2->1.3
#
#    ---------------------
#    PatchSet 2
#    Date: 2012/12/12 15:09:44
#    Log:
#    changes
#
#    Members:
#        c:INITIAL->1.1
#
#    ---------------------
#    PatchSet 3
#    Date: 2012/12/12 15:09:46
#    Log:
#    changes
#
#    Members:
#        c:1.1->1.2
#
#This is seen in cvsps versions 2.x and up through at least 3.7.
#
# Reported by Chris Rorvick.

import sys, testlifter

testlifter.verbose += sys.argv[1:].count("-v")
cc = testlifter.ConvertComparison(stem="t9605", module="module")
cc.repo.retain = ("-k" in sys.argv[1:])
cc.compare_tree("branch", "master", True)
cc.cleanup()