jetbrains.buildServer.configs.kotlin.v2017_2.vcs / HgVcsRoot

HgVcsRoot

open class HgVcsRoot : VcsRoot

Mercurial VCS root

Types

PurgePolicy

enum class PurgePolicy

Defines hg purge settings

Constructors

<init>

HgVcsRoot(init: HgVcsRoot.() -> Unit)HgVcsRoot()

Mercurial VCS root

Properties

branch

var branch: String?

Default branch name

branchSpec

var branchSpec: String?

Branch specification to use in VCS root

customHgConfig

var customHgConfig: String?

Mercurial configuration options to be applied to the repository in the standard format

detectSubrepoChanges

var detectSubrepoChanges: Boolean?

Whether TeamCity should detect changes in submodules

hgPath

var hgPath: String?

Path to hg executable

password

var password: String?

A password for mercurial connection

purgePolicy

var purgePolicy: PurgePolicy?

Specifies whether TeamCity should run the hg purge command and what files should be purged

url

var url: String?

Mercurial repository URL

useMirrors

var useMirrors: Boolean?

When set to true, TeamCity creates a local agent mirror first (under agent's system/mercurial directory) and then clones to the build checkout directory from this local mirror. This option speeds up clean checkout, because only the build working directory is cleaned. Also, if a single root is used in several build configurations, a clone will be faster.

useTagsAsBranches

var useTagsAsBranches: Boolean?

Allows to use tags in branch specification. By default, tags are ignored.

userForTags

var userForTags: String?

A custom username for tags. Format: User Name

userName

var userName: String?

A username for mercurial connection

Inherited Properties

extId

var extId: String

VCS root id. It appears in web UI and is used in urls. Can be changed at any time. But be aware that some settings use it, e.g. as a part of parameter reference. If you change the id, you should find all its occurrences in the current project and change them too.

id

var id: String

VCS root id. It appears in web UI and is used in urls. Can be changed at any time. But be aware that some settings use it, e.g. as a part of parameter reference. If you change the id, you should find all its occurrences in the current project and change them too.

name

var name: String

VCS root name

pollInterval

var pollInterval: Int?

VCS root polling interval

type

var type: String

VCS type

uuid

var uuid: String

VCS root uuid. It is mandatory, TeamCity uses it to identify entities. If root's uuid changes, TeamCity considers it to be a new VCS root.

Functions

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

create

open fun create(): VcsRoot

Creates an instance of this VCS root via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.

equals

open fun equals(other: Any?): Boolean

toString

open fun toString(): String