hudson.plugins.mercurial
Class MercurialSCM
java.lang.Object
hudson.scm.SCM
hudson.plugins.mercurial.MercurialSCM
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>, Serializable
public class MercurialSCM
- extends hudson.scm.SCM
- implements Serializable
Mercurial SCM.
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.scm.SCM |
PERMISSIONS, TAG |
|
Method Summary |
void |
buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
|
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
|
boolean |
checkout(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
File changelogFile)
|
protected hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState _baseline)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
String |
getBranch()
In-repository branch to follow. |
HgBrowser |
getBrowser()
|
MercurialSCM.DescriptorImpl |
getDescriptor()
|
String |
getInstallation()
|
String |
getModules()
|
String |
getSource()
Gets the source repository path. |
String |
getSubdir()
|
boolean |
isClean()
True if we want clean check out each time. |
boolean |
isForest()
True if we want consider repository a forest |
| Methods inherited from class hudson.scm.SCM |
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MercurialSCM
@DataBoundConstructor
public MercurialSCM(String installation,
String source,
String branch,
String modules,
String subdir,
HgBrowser browser,
boolean clean,
boolean forest)
getInstallation
public String getInstallation()
getSource
public String getSource()
- Gets the source repository path.
Either URL or local file path.
getBranch
public String getBranch()
- In-repository branch to follow. Never null.
getSubdir
public String getSubdir()
getBrowser
public HgBrowser getBrowser()
- Overrides:
getBrowser in class hudson.scm.SCM
isClean
public boolean isClean()
- True if we want clean check out each time. This means deleting everything in the repository checkout
(except .hg)
isForest
public boolean isForest()
- True if we want consider repository a forest
calcRevisionsFromBuild
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
- Specified by:
calcRevisionsFromBuild in class hudson.scm.SCM
- Throws:
IOException
InterruptedException
compareRemoteRevisionWith
protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState _baseline)
throws IOException,
InterruptedException
- Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
- Throws:
IOException
InterruptedException
checkout
public boolean checkout(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
File changelogFile)
throws IOException,
InterruptedException
- Specified by:
checkout in class hudson.scm.SCM
- Throws:
IOException
InterruptedException
buildEnvVars
public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env)
- Overrides:
buildEnvVars in class hudson.scm.SCM
createChangeLogParser
public hudson.scm.ChangeLogParser createChangeLogParser()
- Specified by:
createChangeLogParser in class hudson.scm.SCM
getDescriptor
public MercurialSCM.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>- Overrides:
getDescriptor in class hudson.scm.SCM
getModules
public String getModules()
Copyright © 2004-2011. All Rights Reserved.