hudson.plugins.mercurial
Class MercurialSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by hudson.plugins.mercurial.MercurialSCM
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>, java.io.Serializable

public class MercurialSCM
extends hudson.scm.SCM
implements java.io.Serializable

Mercurial SCM.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Nested Class Summary
static class MercurialSCM.DescriptorImpl
           
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
MercurialSCM(java.lang.String source, java.lang.String branch, java.lang.String modules, HgWeb browser)
           
 
Method Summary
 void buildEnvVars(hudson.model.AbstractBuild build, java.util.Map<java.lang.String,java.lang.String> env)
           
 boolean checkout(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, java.io.File changelogFile)
           
 hudson.scm.ChangeLogParser createChangeLogParser()
           
 java.lang.String getBranch()
          In-repository branch to follow.
 HgWeb getBrowser()
           
 MercurialSCM.DescriptorImpl getDescriptor()
           
 java.lang.String getModules()
           
 java.lang.String getSource()
          Gets the source repository path.
 boolean pollChanges(hudson.model.AbstractProject project, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener)
           
 
Methods inherited from class hudson.scm.SCM
createEmptyChangeLog, getEffectiveBrowser, getModuleRoot, getModuleRoots, nullify, requiresWorkspaceForPolling, supportsPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MercurialSCM

@DataBoundConstructor
public MercurialSCM(java.lang.String source,
                                         java.lang.String branch,
                                         java.lang.String modules,
                                         HgWeb browser)
Method Detail

getSource

public java.lang.String getSource()
Gets the source repository path. Either URL or local file path.


getBranch

public java.lang.String getBranch()
In-repository branch to follow. Null indicates "default".


getBrowser

public HgWeb getBrowser()
Overrides:
getBrowser in class hudson.scm.SCM

pollChanges

public boolean pollChanges(hudson.model.AbstractProject project,
                           hudson.Launcher launcher,
                           hudson.FilePath workspace,
                           hudson.model.TaskListener listener)
                    throws java.io.IOException,
                           java.lang.InterruptedException
Specified by:
pollChanges in class hudson.scm.SCM
Throws:
java.io.IOException
java.lang.InterruptedException

checkout

public boolean checkout(hudson.model.AbstractBuild build,
                        hudson.Launcher launcher,
                        hudson.FilePath workspace,
                        hudson.model.BuildListener listener,
                        java.io.File changelogFile)
                 throws java.io.IOException,
                        java.lang.InterruptedException
Specified by:
checkout in class hudson.scm.SCM
Throws:
java.io.IOException
java.lang.InterruptedException

buildEnvVars

public void buildEnvVars(hudson.model.AbstractBuild build,
                         java.util.Map<java.lang.String,java.lang.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 java.lang.String getModules()


Copyright © 2008. All Rights Reserved.