class RefTreeBatch extends BatchRefUpdate
RefTreeDatabase
.Modifier and Type | Field and Description |
---|---|
private PersonIdent |
author |
private ObjectId |
newCommitId |
private ObjectId |
parentCommitId |
private ObjectId |
parentTreeId |
private RefTreeDatabase |
refdb |
private Ref |
src |
private RefTree |
tree |
MAX_WAIT
Constructor and Description |
---|
RefTreeBatch(RefTreeDatabase refdb) |
Modifier and Type | Method and Description |
---|---|
private boolean |
apply(java.util.List<Command> todo) |
private void |
commit(RevWalk rw,
java.util.List<Command> todo) |
(package private) Ref |
exactRef(ObjectReader reader,
java.lang.String name) |
(package private) void |
execute(RevWalk rw,
java.util.List<Command> todo)
Execute an update from
RefTreeUpdate or RefTreeRename . |
void |
execute(RevWalk rw,
ProgressMonitor monitor)
Execute this batch update without option strings.
|
(package private) void |
init(RevWalk rw) |
private void |
updateBootstrap(RevWalk rw,
ReceiveCommand commit) |
addCommand, addCommand, addCommand, addPrefixesTo, addProposedTimestamp, blockUntilTimestamps, disableRefLog, execute, getCommands, getPrefixes, getProposedTimestamps, getPushCertificate, getPushOptions, getRefLogIdent, getRefLogMessage, getRefLogMessage, isAllowNonFastForwards, isAtomic, isForceRefLog, isForceRefLog, isRefLogDisabled, isRefLogDisabled, isRefLogIncludingResult, isRefLogIncludingResult, newUpdate, setAllowNonFastForwards, setAtomic, setForceRefLog, setPushCertificate, setPushOptions, setRefLogIdent, setRefLogMessage, toString
private final RefTreeDatabase refdb
private Ref src
private ObjectId parentCommitId
private ObjectId parentTreeId
private RefTree tree
private PersonIdent author
private ObjectId newCommitId
RefTreeBatch(RefTreeDatabase refdb)
public void execute(RevWalk rw, ProgressMonitor monitor) throws java.io.IOException
execute
in class BatchRefUpdate
rw
- a RevWalk to parse tags in case the storage system wants to
store them pre-peeled, a common performance optimization.monitor
- progress monitor to receive update status on.java.io.IOException
- the database is unable to accept the update. Individual
command status must be tested to determine if there is a
partial failure, or a total failure.void init(RevWalk rw) throws java.io.IOException
java.io.IOException
@Nullable Ref exactRef(ObjectReader reader, java.lang.String name) throws java.io.IOException
java.io.IOException
void execute(RevWalk rw, java.util.List<Command> todo) throws java.io.IOException
RefTreeUpdate
or RefTreeRename
.rw
- current RevWalk handling the update or rename.todo
- commands to execute. Must never be a bootstrap reference name.java.io.IOException
- the storage system is unable to read or write data.private boolean apply(java.util.List<Command> todo) throws java.io.IOException
java.io.IOException
private void commit(RevWalk rw, java.util.List<Command> todo) throws java.io.IOException
java.io.IOException
private void updateBootstrap(RevWalk rw, ReceiveCommand commit) throws java.io.IOException
java.io.IOException