Package com.google.gerrit.server.git
Class SubmoduleOp
- java.lang.Object
-
- com.google.gerrit.server.git.SubmoduleOp
-
public class SubmoduleOp extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubmoduleOp.Factory
class
SubmoduleOp.GitlinkOp
Only used for branches without code review changes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBranchTip(Branch.NameKey branch, CodeReviewCommit tip)
void
addOp(BatchUpdate bu, Branch.NameKey branch)
CodeReviewCommit
composeGitlinksCommit(Branch.NameKey subscriber)
Create a separate gitlink commitCodeReviewCommit
composeGitlinksCommit(Branch.NameKey subscriber, CodeReviewCommit currentCommit)
Amend an existing commit with gitlink updatescom.google.common.collect.ImmutableSet<Branch.NameKey>
getBranchesInOrder()
com.google.common.collect.ImmutableSet<Project.NameKey>
getProjectsInOrder()
boolean
hasSubscription(Branch.NameKey branch)
Collection<SubmoduleSubscription>
superProjectSubscriptionsForSubmoduleBranch(Branch.NameKey srcBranch)
void
updateSuperProjects()
-
-
-
Method Detail
-
superProjectSubscriptionsForSubmoduleBranch
public Collection<SubmoduleSubscription> superProjectSubscriptionsForSubmoduleBranch(Branch.NameKey srcBranch) throws IOException
- Throws:
IOException
-
updateSuperProjects
public void updateSuperProjects() throws SubmoduleException
- Throws:
SubmoduleException
-
composeGitlinksCommit
public CodeReviewCommit composeGitlinksCommit(Branch.NameKey subscriber) throws IOException, SubmoduleException
Create a separate gitlink commit- Throws:
IOException
SubmoduleException
-
composeGitlinksCommit
public CodeReviewCommit composeGitlinksCommit(Branch.NameKey subscriber, CodeReviewCommit currentCommit) throws IOException, SubmoduleException
Amend an existing commit with gitlink updates- Throws:
IOException
SubmoduleException
-
getProjectsInOrder
public com.google.common.collect.ImmutableSet<Project.NameKey> getProjectsInOrder() throws SubmoduleException
- Throws:
SubmoduleException
-
getBranchesInOrder
public com.google.common.collect.ImmutableSet<Branch.NameKey> getBranchesInOrder()
-
hasSubscription
public boolean hasSubscription(Branch.NameKey branch)
-
addBranchTip
public void addBranchTip(Branch.NameKey branch, CodeReviewCommit tip)
-
addOp
public void addOp(BatchUpdate bu, Branch.NameKey branch)
-
-