コード例 #1
0
ファイル: buildinator_common.py プロジェクト: vasi/kdelibs
def GetRevisionList( SvnUrl ):
    """Make an BuildStatus list of revisions, sorted latest-to-older"""
    Lines = GetSvnLog ( SvnUrl )
    RevisionLine = re.compile( '^r\d+\s')
    Revisions = []
    for Line in Lines:
        Match = RevisionLine.match( Line )
        if Match:
            Status = BuildStatus()
            Pieces = Line.split('|')
            Status.committer = Pieces[1].strip()
            Status.revision = int (Pieces[0].rstrip()[1:])
            Status.svnUrl = SvnUrl
            Revisions = Revisions + [ Status ]
    return Revisions
コード例 #2
0
def GetRevisionList(SvnUrl):
    """Make an BuildStatus list of revisions, sorted latest-to-older"""
    Lines = GetSvnLog(SvnUrl)
    RevisionLine = re.compile('^r\d+\s')
    Revisions = []
    for Line in Lines:
        Match = RevisionLine.match(Line)
        if Match:
            Status = BuildStatus()
            Pieces = Line.split('|')
            Status.committer = Pieces[1].strip()
            Status.revision = int(Pieces[0].rstrip()[1:])
            Status.svnUrl = SvnUrl
            Revisions = Revisions + [Status]
    return Revisions
コード例 #3
0
ファイル: build_status_test.py プロジェクト: vasi/kdelibs
#!/usr/bin/python

from buildinator_build_status import BuildStatus

# main:
status = BuildStatus()
status.revision = 123456
status.platform = "Linux boombox 2.6.13-15.7-default #1 Tue Nov 29 14:32:29 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux"
status.options = "CONFIG+=debug"
status.prefix = "Debug"
status.checkoutStatus = 1
status.configureStatus = 1
status.compileStatus = 2
status.initialTestStatus = 4
status.committer = "mirko"

status.dumpBuildStatus()
コード例 #4
0
ファイル: build_status_test.py プロジェクト: zero804/kdelibs
#!/usr/bin/python

from buildinator_build_status import BuildStatus

# main:
status = BuildStatus()
status.revision = 123456
status.platform = 'Linux boombox 2.6.13-15.7-default #1 Tue Nov 29 14:32:29 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux'
status.options = 'CONFIG+=debug'
status.prefix = 'Debug'
status.checkoutStatus = 1
status.configureStatus = 1
status.compileStatus = 2
status.initialTestStatus = 4
status.committer = 'mirko'

status.dumpBuildStatus()