Skip to content

alexserov/HgAdapter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mercurial adapter for CCNet

Build status

Implements the external source control API.

Usage:

GETMODS {date|(NOW)} prev_date --repo=path [--revset=revset] [--include=pattern] [--timeout=number]
GETSOURCE target_path {max_date|(MAX)} --repo=path [--revset=revset] [--include=pattern] [--subdir=path]

See: revsets, patterns

Samples:

GETMODS (NOW) "2015-04-15 15:00:00" --repo=\path\to\repo --revset=branch(feature1) --include=listfile:files.txt
GETSOURCE D:\temp (MAX) --repo=\path\to\repo --revset=branch(feature1) --include=listfile:files.txt

Direct usage in DX CCNet config:

<cb:scope 
    hga_exec="\path\to\HgAdapter2.exe" 
    hga_extra="--repo=\path\to\repo --revset=branch(feature1) --include=pattern">
    <smart queue="Tests">
        <!-- . . . -->
        <sourcecontrol type="external" executable="$(hga_exec)" args="$(hga_extra)" />
        <tasks>
            <exec executable="cmd">
                <buildArgs>
                    /c $(hga_exec) GETSOURCE "%CCNetWorkingDirectory%" "%DXCCNetBuildDateTime%" $(hga_extra)
                </buildArgs>
            </exec>
        </tasks>
        <!-- . . . -->            
    </smart>
</cb:scope>

About

Mercurial adapter for CCNet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%