code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
private static void assertPluginsZipExists() { if (DevelopmentServer.class.getResource("/plugins.zip") == null) { throw new IllegalArgumentException("Could not find plugins.zip. Hint: Did you run `./gradlew prepare`?"); } }
Understands how to run a local development mode webserver so we can develop live Set the following before running the main method: Working directory: <project-path>/server VM arguments: -Xms512m -Xmx1024m -Djava.awt.headless=true classpath: Use classpath of 'gocd.development-utility.development-server.main'
assertPluginsZipExists
java
gocd/gocd
development-utility/development-server/src/main/java/com/thoughtworks/go/server/DevelopmentServer.java
https://github.com/gocd/gocd/blob/master/development-utility/development-server/src/main/java/com/thoughtworks/go/server/DevelopmentServer.java
Apache-2.0
private static void setupPeriodicGC(SystemEnvironment systemEnvironment) { systemEnvironment.set(SystemEnvironment.GO_CONFIG_REPO_GC_LOOSE_OBJECT_WARNING_THRESHOLD, 100L); systemEnvironment.set(SystemEnvironment.GO_CONFIG_REPO_PERIODIC_GC, true); systemEnvironment.set(SystemEnvironment.GO_CONFIG...
Understands how to run a local development mode webserver so we can develop live Set the following before running the main method: Working directory: <project-path>/server VM arguments: -Xms512m -Xmx1024m -Djava.awt.headless=true classpath: Use classpath of 'gocd.development-utility.development-server.main'
setupPeriodicGC
java
gocd/gocd
development-utility/development-server/src/main/java/com/thoughtworks/go/server/DevelopmentServer.java
https://github.com/gocd/gocd/blob/master/development-utility/development-server/src/main/java/com/thoughtworks/go/server/DevelopmentServer.java
Apache-2.0
private static void copyPluginAssets() throws IOException { Path classPathRoot = Path.of(DevelopmentServer.class.getProtectionDomain().getCodeSource().getLocation().getPath()); Files.copy(Path.of("src/main/webapp/WEB-INF/rails/webpack/rails-shared/plugin-endpoint.js"), classPathRoot.resolve("plugin-endp...
Understands how to run a local development mode webserver so we can develop live Set the following before running the main method: Working directory: <project-path>/server VM arguments: -Xms512m -Xmx1024m -Djava.awt.headless=true classpath: Use classpath of 'gocd.development-utility.development-server.main'
copyPluginAssets
java
gocd/gocd
development-utility/development-server/src/main/java/com/thoughtworks/go/server/DevelopmentServer.java
https://github.com/gocd/gocd/blob/master/development-utility/development-server/src/main/java/com/thoughtworks/go/server/DevelopmentServer.java
Apache-2.0
private static void assertActivationJarPresent() { if (DevelopmentServer.class.getResource("/go-plugin-activator.jar") == null) { System.err.println("Could not find plugin activator jar, Plugin framework will not be loaded. Hint: Did you run `./gradlew prepare`?"); } }
Understands how to run a local development mode webserver so we can develop live Set the following before running the main method: Working directory: <project-path>/server VM arguments: -Xms512m -Xmx1024m -Djava.awt.headless=true classpath: Use classpath of 'gocd.development-utility.development-server.main'
assertActivationJarPresent
java
gocd/gocd
development-utility/development-server/src/main/java/com/thoughtworks/go/server/DevelopmentServer.java
https://github.com/gocd/gocd/blob/master/development-utility/development-server/src/main/java/com/thoughtworks/go/server/DevelopmentServer.java
Apache-2.0
@Override public CaseInsensitiveString getName() { return name; }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public String getMaterialNameForEnvironmentVariable() { return escapeEnvironmentVariable(getName().toUpper()); }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getMaterialNameForEnvironmentVariable
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public final Map<String, Object> getSqlCriteria() { if (sqlCriteria == null) { Map<String, Object> map = new LinkedHashMap<>(); map.put("type", materialType); appendCriteria(map); sqlCriteria = Collections.unmodifiableMap(map); } retu...
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getSqlCriteria
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public final Map<String, Object> getAttributesForScope() { Map<String, Object> map = new LinkedHashMap<>(); map.put("type", materialType); map.put("autoUpdate", isAutoUpdate()); appendCriteria(map); return Collections.unmodifiableMap(map); }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getAttributesForScope
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public final Map<String, Object> getAttributesForXml() { if (attributesForXml == null) { Map<String, Object> map = new LinkedHashMap<>(); map.put("type", materialType); appendAttributes(map); attributesForXml = Collections.unmodifiableMap(map); ...
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getAttributesForXml
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public String getFingerprint() { if (fingerprint == null) { fingerprint = generateFingerprintFromCriteria(getSqlCriteria()); } return fingerprint; }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getFingerprint
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public String getPipelineUniqueFingerprint() { if (pipelineUniqueFingerprint == null) { Map<String, Object> basicCriteria = new LinkedHashMap<>(getSqlCriteria()); appendPipelineUniqueCriteria(basicCriteria); pipelineUniqueFingerprint = generateFingerprintFromCri...
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getPipelineUniqueFingerprint
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
private String generateFingerprintFromCriteria(Map<String, Object> sqlCriteria) { List<String> list = new ArrayList<>(); for (Map.Entry<String, Object> criteria : sqlCriteria.entrySet()) { list.add(criteria.getKey() + "=" + criteria.getValue()); } String fingerprint = StringU...
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
generateFingerprintFromCriteria
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public String getTruncatedDisplayName() { String displayName = getDisplayName(); if (displayName.length() > TRUNCATED_NAME_MAX_LENGTH) { StringBuilder builder = new StringBuilder(); builder.append(displayName, 0, TRUNCATED_NAME_MAX_LENGTH / 2); builder.a...
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getTruncatedDisplayName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
public void setName(final CaseInsensitiveString name) { this.name = name; }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
setName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public String getMaterialType() { return materialType; }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getMaterialType
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public String getShortRevision(String revision) { return revision; }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getShortRevision
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public boolean isSameFlyweight(Material other) { return getFingerprint().equals(other.getFingerprint()); }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
isSameFlyweight
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public boolean hasSameFingerprint(MaterialConfig materialConfig) { return getFingerprint().equals(materialConfig.getFingerprint()); }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
hasSameFingerprint
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AbstractMaterial that = (AbstractMaterial) o; return Objects.equals(name, that.name) && Obj...
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
equals
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public int hashCode() { int result = name != null ? name.hashCode() : 0; result = 31 * result + (materialType != null ? materialType.hashCode() : 0); return result; }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
hashCode
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public String toString() { return String.format("AbstractMaterial{name=%s, type=%s}", name, materialType); }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
toString
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public MaterialConfig config() { throw new RuntimeException("You need to implement this"); }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
config
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public Map<String, Object> getAttributes(boolean addSecureFields) { throw new RuntimeException("You need to implement this"); }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
getAttributes
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
protected boolean hasDestinationFolder() { return !StringUtils.isBlank(getFolder()); }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
hasDestinationFolder
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
public boolean supportsDestinationFolder() { return false; }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
supportsDestinationFolder
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public void updateFromConfig(MaterialConfig materialConfig) { if (materialConfig instanceof PasswordAwareMaterial passwordConfig) { ((PasswordAwareMaterial) this).setUserName(passwordConfig.getUserName()); ((PasswordAwareMaterial) this).setPassword(passwordConfig.getPasswor...
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
updateFromConfig
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public void populateAgentSideEnvironmentContext(EnvironmentVariableContext context, File workingDir) { }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
populateAgentSideEnvironmentContext
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override public boolean ignoreForScheduling() { //overridden in DependencyMaterial. Other materials don't support this flag return false; }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
ignoreForScheduling
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
public ValidationBean checkConnection(final SubprocessExecutionContext execCtx) { throw new UnsupportedOperationException(String.format("'checkConnection' cannot be performed on material of type %s", materialType)); }
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
checkConnection
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
boolean dataHasSecureValue(EnvironmentVariableContext context, Map.Entry<String, String> dataEntry) { boolean isSecure = false; for (EnvironmentVariableContext.EnvironmentVariable secureEnvironmentVariable : context.getSecureEnvironmentVariables()) { String urlEncodedValue; urlEn...
CAREFUL!, this should be the same as the one used in migration 47_create_new_materials.sql
dataHasSecureValue
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/AbstractMaterial.java
Apache-2.0
@Override protected void appendPipelineUniqueCriteria(Map<String, Object> basicCriteria) { basicCriteria.put("dest", folder); }
Understands a source control repository and its configuration
appendPipelineUniqueCriteria
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public File workingdir(File baseFolder) { if (getFolder() == null) { return baseFolder; } return new File(baseFolder, getFolder()); }
Understands a source control repository and its configuration
workingdir
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public String updatingTarget() { return StringUtils.isEmpty(getFolder()) ? "files" : getFolder(); }
Understands a source control repository and its configuration
updatingTarget
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public void toJson(Map<String, Object> json, Revision revision) { json.put("folder", getFolder() == null ? "" : getFolder()); json.put("scmType", getTypeForDisplay()); json.put("location", getLocation()); if (!CaseInsensitiveString.isBlank(getName())) { json.put...
Understands a source control repository and its configuration
toJson
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public boolean matches(String name, String regex) { if (regex.startsWith("/")) { regex = regex.substring(1); } return name.matches(regex); }
Understands a source control repository and its configuration
matches
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public void checkout(File baseDir, Revision revision, SubprocessExecutionContext execCtx) { InMemoryStreamConsumer output = ProcessOutputStreamConsumer.inMemoryConsumer(); this.updateTo(output, baseDir, new RevisionContext(revision), execCtx); }
Understands a source control repository and its configuration
checkout
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public String getUserName() { return this.userName; }
Understands a source control repository and its configuration
getUserName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@SuppressWarnings("unused") public String getUsername() { return userName; }
Understands a source control repository and its configuration
getUsername
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
private void setPasswordIfNotBlank(String password) { this.password = StringUtils.stripToNull(password); this.secretParamsForPassword = SecretParams.parse(password); }
Understands a source control repository and its configuration
setPasswordIfNotBlank
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@PostConstruct public void ensureEncrypted() { this.userName = StringUtils.stripToNull(this.userName); setPasswordIfNotBlank(password); }
Understands a source control repository and its configuration
ensureEncrypted
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public void setUserName(String userName) { this.userName = userName; }
Understands a source control repository and its configuration
setUserName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public String getPassword() { return password; }
Understands a source control repository and its configuration
getPassword
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public String passwordForCommandLine() { return secretParamsForPassword == null || secretParamsForPassword.isEmpty() ? getPassword() : secretParamsForPassword.substitute(getPassword()); }
Understands a source control repository and its configuration
passwordForCommandLine
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public boolean hasSecretParams() { return this.secretParamsForPassword != null && !this.secretParamsForPassword.isEmpty(); }
Understands a source control repository and its configuration
hasSecretParams
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public SecretParams getSecretParams() { return secretParamsForPassword; }
Understands a source control repository and its configuration
getSecretParams
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public void setFilter(Filter filter) { this.filter = filter; }
Understands a source control repository and its configuration
setFilter
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public void emailContent(StringBuilder content, Modification modification) { content.append(getTypeForDisplay()).append(": ").append(getLocation()).append('\n').append( String.format("revision: %s, modified by %s on %s", modification.getRevision(), modificat...
Understands a source control repository and its configuration
emailContent
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public String getDescription() { return getUriForDisplay(); }
Understands a source control repository and its configuration
getDescription
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public String getUriForDisplay() { return this.getUrlArgument().forDisplay(); }
Understands a source control repository and its configuration
getUriForDisplay
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public void populateEnvironmentContext(EnvironmentVariableContext environmentVariableContext, MaterialRevision materialRevision, File workingDir) { String toRevision = materialRevision.getRevision().getRevision(); String fromRevision = materialRevision.getOldestRevision().getRevision(); ...
Understands a source control repository and its configuration
populateEnvironmentContext
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
protected void setGoMaterialVariables(EnvironmentVariableContext environmentVariableContext) { setVariableWithName(environmentVariableContext, this.getUrlArgument().withoutCredentials(), GO_MATERIAL_URL); }
Understands a source control repository and its configuration
setGoMaterialVariables
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
private void setGoRevisionVariables(EnvironmentVariableContext environmentVariableContext, String fromRevision, String toRevision) { setVariableWithName(environmentVariableContext, toRevision, GO_REVISION); setVariableWithName(environmentVariableContext, toRevision, GO_TO_REVISION); setVariableW...
Understands a source control repository and its configuration
setGoRevisionVariables
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
protected void setVariableWithName(EnvironmentVariableContext environmentVariableContext, String value, String propertyName) { String materialNameForEnvironmentVariable = getMaterialNameForEnvironmentVariable(); if (StringUtils.isNotBlank(materialNameForEnvironmentVariable)) { environmentVar...
Understands a source control repository and its configuration
setVariableWithName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public String getMaterialNameForEnvironmentVariable() { if (!CaseInsensitiveString.isBlank(this.name)) { return escapeEnvironmentVariable(this.name.toUpper()); } return escapeEnvironmentVariable(folder); }
Understands a source control repository and its configuration
getMaterialNameForEnvironmentVariable
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public String getFolder() { return folder; }
Understands a source control repository and its configuration
getFolder
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public String getDisplayName() { return name == null ? getUriForDisplay() : CaseInsensitiveString.str(name); }
Understands a source control repository and its configuration
getDisplayName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public boolean isAutoUpdate() { return autoUpdate; }
Understands a source control repository and its configuration
isAutoUpdate
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public boolean getAutoUpdate() { return autoUpdate; }
Understands a source control repository and its configuration
getAutoUpdate
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public void setAutoUpdate(boolean value) { autoUpdate = value; }
Understands a source control repository and its configuration
setAutoUpdate
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public boolean isInvertFilter() { return invertFilter; }
Understands a source control repository and its configuration
isInvertFilter
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public boolean getInvertFilter() { return invertFilter; }
Understands a source control repository and its configuration
getInvertFilter
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public void setInvertFilter(boolean value) { invertFilter = value; }
Understands a source control repository and its configuration
setInvertFilter
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public final MatchedRevision createMatchedRevision(Modification modification, String searchString) { return new MatchedRevision(searchString, getShortRevision(modification.getRevision()), modification.getRevision(), modification.getUserName(), modification.getModifiedTime(), modification.getCommen...
Understands a source control repository and its configuration
createMatchedRevision
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } ScmMaterial that = (ScmMaterial) o; ...
Understands a source control repository and its configuration
equals
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (folder != null ? folder.hashCode() : 0); return result; }
Understands a source control repository and its configuration
hashCode
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public Boolean isUsedInFetchArtifact(PipelineConfig pipelineConfig) { return false; }
Understands a source control repository and its configuration
isUsedInFetchArtifact
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
public void setFolder(String folder) { this.folder = folder; }
Understands a source control repository and its configuration
setFolder
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public Revision oldestRevision(Modifications modifications) { return Modification.oldestRevision(modifications); }
Understands a source control repository and its configuration
oldestRevision
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public boolean supportsDestinationFolder() { return true; }
Understands a source control repository and its configuration
supportsDestinationFolder
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
Apache-2.0
@Override public MaterialConfig config() { HgMaterialConfig hgConfig = new HgMaterialConfig(); hgConfig.setUrl(this.url.originalArgument()); hgConfig.setUserName(this.userName); hgConfig.setPassword(getPassword()); hgConfig.setBranchAttribute(this.branch); hgConfig.se...
Understands configuration for mercurial version control
config
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
public List<Modification> latestModification(File baseDir, final SubprocessExecutionContext execCtx) { HgCommand hgCommand = getHg(baseDir); return hgCommand.latestOneModificationAsModifications(); }
Understands configuration for mercurial version control
latestModification
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
public List<Modification> modificationsSince(File baseDir, Revision revision, final SubprocessExecutionContext execCtx) { return getHg(baseDir).modificationsSince(revision); }
Understands configuration for mercurial version control
modificationsSince
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public MaterialInstance createMaterialInstance() { return new HgMaterialInstance(url.originalArgument(), userName, branch, UUID.randomUUID().toString()); }
Understands configuration for mercurial version control
createMaterialInstance
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override protected void appendCriteria(Map<String, Object> parameters) { parameters.put(ScmMaterialConfig.URL, url.originalArgument()); if (isNotBlank(branch)) { parameters.put("branch", branch); } }
Understands configuration for mercurial version control
appendCriteria
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override protected void appendAttributes(Map<String, Object> parameters) { parameters.put("url", url); }
Understands configuration for mercurial version control
appendAttributes
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
private HgCommand getHg(File baseDir) { InMemoryStreamConsumer output = ProcessOutputStreamConsumer.inMemoryConsumer(); HgCommand hgCommand = null; try { hgCommand = hg(baseDir, output); } catch (Exception e) { bomb(e.getMessage() + " " + output.ge...
Understands configuration for mercurial version control
getHg
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public void updateTo(ConsoleOutputStreamConsumer outputStreamConsumer, File baseDir, RevisionContext revisionContext, final SubprocessExecutionContext execCtx) { Revision revision = revisionContext.getLatestRevision(); try { outputStreamConsumer.stdOutput(format("[%s] Start upd...
Understands configuration for mercurial version control
updateTo
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@TestOnly public void add(File baseDir, ProcessOutputStreamConsumer<?, ?> outputStreamConsumer, File file) throws Exception { hg(baseDir, outputStreamConsumer).add(outputStreamConsumer, file); }
Understands configuration for mercurial version control
add
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@TestOnly public void commit(File baseDir, ProcessOutputStreamConsumer<?, ?> consumer, String comment, String username) throws Exception { hg(baseDir, consumer).commit(consumer, comment, username); }
Understands configuration for mercurial version control
commit
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@TestOnly public void push(File baseDir, ProcessOutputStreamConsumer<?, ?> consumer) throws Exception { hg(baseDir, consumer).push(consumer); }
Understands configuration for mercurial version control
push
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
public ValidationBean checkConnection(final SubprocessExecutionContext execCtx) { HgCommand hgCommand = new HgCommand(null, null, null, null, secrets()); try { hgCommand.checkConnection(new HgUrlArgument(urlForCommandLine())); return ValidationBean.valid(); } catch (Excep...
Understands configuration for mercurial version control
checkConnection
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
ValidationBean handleException(Exception e, HgVersion version) { ValidationBean defaultResponse = ValidationBean.notValid( "Repository " + url.forDisplay() + " not found!" + " : \n" + e.getMessage()); try { if (version.isOlderThanOneDotZero()) { return Validat...
Understands configuration for mercurial version control
handleException
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
private HgCommand hg(File workingFolder, ConsoleOutputStreamConsumer outputStreamConsumer) throws Exception { UrlArgument urlArgument = new HgUrlArgument(urlForCommandLine()); HgCommand hgCommand = new HgCommand(getFingerprint(), workingFolder, getBranch(), urlArgument.forCommandLine(), secrets()); ...
Understands configuration for mercurial version control
hg
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
protected List<SecretString> secrets() { SecretString secretSubstitution = line -> line.replace(urlForCommandLine(), getUriForDisplay()); return List.of(secretSubstitution); }
Understands configuration for mercurial version control
secrets
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
private boolean isHgRepository(File workingFolder) { return new File(workingFolder, ".hg").isDirectory(); }
Understands configuration for mercurial version control
isHgRepository
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
private boolean isRepositoryChanged(HgCommand hgCommand) { ConsoleResult result = hgCommand.workingRepositoryUrl(); return !MaterialUrl.sameUrl(url.defaultRemoteUrl(), new HgUrlArgument(result.outputAsString()).defaultRemoteUrl()); }
Understands configuration for mercurial version control
isRepositoryChanged
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public boolean isCheckExternals() { return false; }
Understands configuration for mercurial version control
isCheckExternals
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public String getUrl() { return url.originalArgument(); }
Understands configuration for mercurial version control
getUrl
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public String urlForCommandLine() { try { if (credentialsAreNotProvided()) { return this.url.originalArgument(); } return new URIBuilder(this.url.originalArgument()) .setUserInfo(new UrlUserInfo(this.userName, this.passwordFo...
Understands configuration for mercurial version control
urlForCommandLine
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
private boolean credentialsAreNotProvided() { return isAllBlank(this.userName, this.getPassword()); }
Understands configuration for mercurial version control
credentialsAreNotProvided
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public UrlArgument getUrlArgument() { return url; }
Understands configuration for mercurial version control
getUrlArgument
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
public HgUrlArgument getHgUrlArgument() { return url; }
Understands configuration for mercurial version control
getHgUrlArgument
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public String getLongDescription() { return String.format("URL: %s", url.forDisplay()); }
Understands configuration for mercurial version control
getLongDescription
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } HgMaterial that = (HgMaterial) o; i...
Understands configuration for mercurial version control
equals
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (url != null ? url.hashCode() : 0); result = 31 * result + (branch != null ? branch.hashCode() : 0); return result; }
Understands configuration for mercurial version control
hashCode
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override protected String getLocation() { return getUrlArgument().forDisplay(); }
Understands configuration for mercurial version control
getLocation
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public String getTypeForDisplay() { return "Mercurial"; }
Understands configuration for mercurial version control
getTypeForDisplay
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public String getShortRevision(String revision) { if (revision == null) return null; if (revision.length() < 12) return revision; return revision.substring(0, 12); }
Understands configuration for mercurial version control
getShortRevision
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public Map<String, Object> getAttributes(boolean addSecureFields) { Map<String, Object> materialMap = new HashMap<>(); materialMap.put("type", "mercurial"); Map<String, Object> configurationMap = new HashMap<>(); if (addSecureFields) { configurationMap.put("url"...
Understands configuration for mercurial version control
getAttributes
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override public Class<HgMaterialInstance> getInstanceType() { return HgMaterialInstance.class; }
Understands configuration for mercurial version control
getInstanceType
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0