public class SubmoduleOp
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SubmoduleOp.Factory |
class |
SubmoduleOp.GitlinkOp
Only used for branches without code review changes
|
Constructor and Description |
---|
SubmoduleOp(GitModules.Factory gitmodulesFactory,
org.eclipse.jgit.lib.PersonIdent myIdent,
org.eclipse.jgit.lib.Config cfg,
ProjectCache projectCache,
ProjectState.Factory projectStateFactory,
java.util.Set<com.google.gerrit.reviewdb.client.Branch.NameKey> updatedBranches,
MergeOpRepoManager orm) |
Modifier and Type | Method and Description |
---|---|
void |
addBranchTip(com.google.gerrit.reviewdb.client.Branch.NameKey branch,
CodeReviewCommit tip) |
void |
addOp(BatchUpdate bu,
com.google.gerrit.reviewdb.client.Branch.NameKey branch) |
CodeReviewCommit |
composeGitlinksCommit(com.google.gerrit.reviewdb.client.Branch.NameKey subscriber)
Create a separate gitlink commit
|
CodeReviewCommit |
composeGitlinksCommit(com.google.gerrit.reviewdb.client.Branch.NameKey subscriber,
CodeReviewCommit currentCommit)
Amend an existing commit with gitlink updates
|
com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Branch.NameKey> |
getBranchesInOrder() |
com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Project.NameKey> |
getProjectsInOrder() |
boolean |
hasSubscription(com.google.gerrit.reviewdb.client.Branch.NameKey branch) |
java.util.Collection<com.google.gerrit.reviewdb.client.SubmoduleSubscription> |
superProjectSubscriptionsForSubmoduleBranch(com.google.gerrit.reviewdb.client.Branch.NameKey srcBranch) |
void |
updateSuperProjects() |
public SubmoduleOp(GitModules.Factory gitmodulesFactory, org.eclipse.jgit.lib.PersonIdent myIdent, org.eclipse.jgit.lib.Config cfg, ProjectCache projectCache, ProjectState.Factory projectStateFactory, java.util.Set<com.google.gerrit.reviewdb.client.Branch.NameKey> updatedBranches, MergeOpRepoManager orm) throws SubmoduleException
SubmoduleException
public java.util.Collection<com.google.gerrit.reviewdb.client.SubmoduleSubscription> superProjectSubscriptionsForSubmoduleBranch(com.google.gerrit.reviewdb.client.Branch.NameKey srcBranch) throws java.io.IOException
java.io.IOException
public void updateSuperProjects() throws SubmoduleException
SubmoduleException
public CodeReviewCommit composeGitlinksCommit(com.google.gerrit.reviewdb.client.Branch.NameKey subscriber) throws java.io.IOException, SubmoduleException
java.io.IOException
SubmoduleException
public CodeReviewCommit composeGitlinksCommit(com.google.gerrit.reviewdb.client.Branch.NameKey subscriber, CodeReviewCommit currentCommit) throws java.io.IOException, SubmoduleException
java.io.IOException
SubmoduleException
public com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Project.NameKey> getProjectsInOrder() throws SubmoduleException
SubmoduleException
public com.google.common.collect.ImmutableSet<com.google.gerrit.reviewdb.client.Branch.NameKey> getBranchesInOrder()
public boolean hasSubscription(com.google.gerrit.reviewdb.client.Branch.NameKey branch)
public void addBranchTip(com.google.gerrit.reviewdb.client.Branch.NameKey branch, CodeReviewCommit tip)
public void addOp(BatchUpdate bu, com.google.gerrit.reviewdb.client.Branch.NameKey branch)