| 1 | #!/usr/bin/env python3 |
| 2 | ## Testing for correct patchset estimation |
| 3 | |
| 4 | # Structure of the test cvs repository |
| 5 | # |
| 6 | # Message File:Content Commit Time |
| 7 | # Rev 1 a: 1.1 2009-02-21 19:11:43 +0100 |
| 8 | # Rev 2 a: 1.2 b: 1.1 2009-02-21 19:11:14 +0100 |
| 9 | # Rev 3 b: 1.2 2009-02-21 19:11:43 +0100 |
| 10 | # |
| 11 | # As you can see the commit of Rev 3 has the same time as |
| 12 | # Rev 1 this leads to a broken import because of a cvsps |
| 13 | # bug. |
| 14 | |
| 15 | import sys, testlifter |
| 16 | |
| 17 | testlifter.verbose += sys.argv[1:].count("-v") |
| 18 | cc = testlifter.ConvertComparison(stem="t9603", module="module") |
| 19 | cc.repo.retain = ("-k" in sys.argv[1:]) |
| 20 | cc.compare_tree("branch", "master", True) |
| 21 | cc.cleanup() |