Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The source collection $Source provides access to a collection of repositories associated with the current configuration 

...


Properties

NameDescriptionReturn TypeUsage Example
N/AA list of repositories associated with the current configurationRepository$Source.Reponame$"
Mercurial_Test_1
CISource"
CountReturns number of repositories in the collectionInteger$Source.Count$
2
3

Functions

Name and ParametersDescriptionReturn TypeUsage Example
First()Gets first repository from the collectionRepository$Source.First().Url$"
Initial commit
https://github.com/VSoftTechnologies/DUnitX.git"
First(string property, string operator, string value, [bool ignoreCase])

Gets first matching repository from the collection for given property using given operator. See list of valid operators below.

Repository$Source.First("type", Equals, "
git
Git").Name$"
11/09/2014 1:48:36 AM
DUnitX"
IsEmpty(
)Returns true if there are no repositories in the collectionBoolean

$Source.IsEmpty()$

False
Item(integer index)Gets a repository in the collection by zero-based index numberRepository$Source.Item(
0
1).Name$"
Initial commit
CISource"
Last()Gets last repository from the collectionRepository$Source.Last().Name$"
Added readme.md
FBSource"
Last(string property, string operator, string value, [bool ignoreCase])Gets last matching repository from the collection for given property using given operator. See list of valid operators below.Repository$Source.Last("url", Contains, "github", true).Path$"
11/09/2014 2:16:12 AM
D:\ContinuaAgent\Ws\50605\Source\DUnitX"
Where(string property, string operator, string value, [bool ignoreCase])Gets matching repositories from collection for given property using given operator. See list of valid operators below.Source Collection$Source.Where("type", Equals, "
tfs
mercurial", True).First().Url$"
11/09/2014 1:48:36 AM
\\SourceServer\Continua"

Anchor
operators
operators
Operators

...