Ejemplo n.º 1
0
Rev 13 2006-04-02 07:59:59 +0000
Rev 12 2005-12-01 00:00:00 +0000
Rev 11 2005-11-01 00:00:00 +0000
Rev 10 2005-10-01 00:00:00 +0000
Rev  9 2005-09-01 00:00:00 +0000
Rev  8 2005-08-01 00:00:00 +0000
Rev  7 2005-07-01 00:00:00 +0000
Rev  6 2005-06-01 00:00:00 +0000
Rev  5 2005-05-01 00:00:00 +0000
Rev  4 2005-04-01 00:00:00 +0000
Rev  3 2005-03-01 00:00:00 +0000
Rev  2 2005-02-01 00:00:00 +0000
Rev  1 2005-01-01 00:00:00 +0000
"""

cc = testlifter.ConvertComparison(stem="t9604", module="module")
cc.repo.retain = ("-k" in sys.argv[1:])
cc.compare_tree("branch", "master", True)
cc.command_returns("cd t9604-git >/dev/null; git log --format='%s %ai'",
                   uncorrected)
cc.cleanup()

authormap = """\
user1=User One <*****@*****.**>
user2=User Two <*****@*****.**> CST6CDT
user3=User Three <*****@*****.**> EST5EDT
user4=User Four <*****@*****.**> MST7MDT
"""

corrected = """\
Rev 16 2006-10-29 01:00:01 -0600 User Two
Ejemplo n.º 2
0
#        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

cc = testlifter.ConvertComparison(stem="t9605", module="module")
cc.repo.retain = ("-k" in sys.argv[1:])
cc.compare_tree("branch", "master", True)
cc.cleanup()
Ejemplo n.º 3
0
#!/usr/bin/env python
## Testing for correct patchset estimation

# Structure of the test cvs repository
#
# Message   File:Content         Commit Time
# Rev 1     a: 1.1               2009-02-21 19:11:43 +0100
# Rev 2     a: 1.2    b: 1.1     2009-02-21 19:11:14 +0100
# Rev 3               b: 1.2     2009-02-21 19:11:43 +0100
#
# As you can see the commit of Rev 3 has the same time as
# Rev 1 this leads to a broken import because of a cvsps
# bug.

import testlifter

cc = testlifter.ConvertComparison("t9603", "module")
cc.cmp_branch_tree("test of branch", "master", True)
cc.cleanup()