private void updateBootstrap(RevWalk rw, ReceiveCommand commit) throws IOException { BatchRefUpdate u = refdb.getBootstrap().newBatchUpdate(); u.setAllowNonFastForwards(true); u.setPushCertificate(getPushCertificate()); if (isRefLogDisabled()) { u.disableRefLog(); } else { u.setRefLogIdent(author); u.setRefLogMessage(getRefLogMessage(), false); } u.addCommand(commit); u.execute(rw, NullProgressMonitor.INSTANCE); } }
.newBatchUpdate() .setAllowNonFastForwards(true) .setRefLogMessage("fetch", true); //$NON-NLS-1$
BatchRefUpdate batch = refdb.newBatchUpdate(); batch.addProposedTimestamp(ts); batch.setRefLogIdent(getSystem().newCommitter(ts));
/** * Execute commands to update references. */ protected void executeCommands() { List<ReceiveCommand> toApply = filterCommands(Result.NOT_ATTEMPTED); if (toApply.isEmpty()) return; ProgressMonitor updating = NullProgressMonitor.INSTANCE; if (sideBand) { SideBandProgressMonitor pm = new SideBandProgressMonitor(msgOut); pm.setDelayStart(250, TimeUnit.MILLISECONDS); updating = pm; } BatchRefUpdate batch = db.getRefDatabase().newBatchUpdate(); batch.setAllowNonFastForwards(isAllowNonFastForwards()); batch.setAtomic(isAtomic()); batch.setRefLogIdent(getRefLogIdent()); batch.setRefLogMessage("push", true); //$NON-NLS-1$ batch.addCommand(toApply); try { batch.setPushCertificate(getPushCertificate()); batch.execute(walk, updating); } catch (IOException err) { for (ReceiveCommand cmd : toApply) { if (cmd.getResult() == Result.NOT_ATTEMPTED) cmd.reject(err); } } }
BatchRefUpdate batch = repo.getRefDatabase().newBatchUpdate();
BatchRefUpdate batch = repo.getRefDatabase().newBatchUpdate();
private void updateBootstrap(RevWalk rw, ReceiveCommand commit) throws IOException { BatchRefUpdate u = refdb.getBootstrap().newBatchUpdate(); u.setAllowNonFastForwards(true); u.setPushCertificate(getPushCertificate()); if (isRefLogDisabled()) { u.disableRefLog(); } else { u.setRefLogIdent(author); u.setRefLogMessage(getRefLogMessage(), false); } u.addCommand(commit); u.execute(rw, NullProgressMonitor.INSTANCE); } }
private void updateBootstrap(RevWalk rw, ReceiveCommand commit) throws IOException { BatchRefUpdate u = refdb.getBootstrap().newBatchUpdate(); u.setAllowNonFastForwards(true); u.setPushCertificate(getPushCertificate()); if (isRefLogDisabled()) { u.disableRefLog(); } else { u.setRefLogIdent(author); u.setRefLogMessage(getRefLogMessage(), false); } u.addCommand(commit); u.execute(rw, NullProgressMonitor.INSTANCE); } }
return; final BatchRefUpdate batch = ((RefTreeDatabase) getRepository().getRefDatabase()).getBootstrap().newBatchUpdate(); batch.setAllowNonFastForwards(true); batch.setAtomic(false);
.newBatchUpdate() .setAllowNonFastForwards(true) .setRefLogMessage("fetch", true); //$NON-NLS-1$
.newBatchUpdate() .setAllowNonFastForwards(true) .setRefLogMessage("fetch", true); //$NON-NLS-1$
BatchRefUpdate batch = refdb.newBatchUpdate(); batch.setRefLogIdent(getSystem().newCommitter()); batch.setRefLogMessage("ketch", false); //$NON-NLS-1$
/** * Execute commands to update references. */ protected void executeCommands() { List<ReceiveCommand> toApply = filterCommands(Result.NOT_ATTEMPTED); if (toApply.isEmpty()) return; ProgressMonitor updating = NullProgressMonitor.INSTANCE; if (sideBand) { SideBandProgressMonitor pm = new SideBandProgressMonitor(msgOut); pm.setDelayStart(250, TimeUnit.MILLISECONDS); updating = pm; } BatchRefUpdate batch = db.getRefDatabase().newBatchUpdate(); batch.setAllowNonFastForwards(isAllowNonFastForwards()); batch.setAtomic(isAtomic()); batch.setRefLogIdent(getRefLogIdent()); batch.setRefLogMessage("push", true); //$NON-NLS-1$ batch.addCommand(toApply); try { batch.setPushCertificate(getPushCertificate()); batch.execute(walk, updating); } catch (IOException err) { for (ReceiveCommand cmd : toApply) { if (cmd.getResult() == Result.NOT_ATTEMPTED) cmd.reject(err); } } }
/** Execute commands to update references. */ protected void executeCommands() { List<ReceiveCommand> toApply = filterCommands(Result.NOT_ATTEMPTED); if (toApply.isEmpty()) return; ProgressMonitor updating = NullProgressMonitor.INSTANCE; if (sideBand) { SideBandProgressMonitor pm = new SideBandProgressMonitor(msgOut); pm.setDelayStart(250, TimeUnit.MILLISECONDS); updating = pm; } BatchRefUpdate batch = db.getRefDatabase().newBatchUpdate(); batch.setAllowNonFastForwards(isAllowNonFastForwards()); batch.setAtomic(isAtomic()); batch.setRefLogIdent(getRefLogIdent()); batch.setRefLogMessage("push", true); //$NON-NLS-1$ batch.addCommand(toApply); try { batch.setPushCertificate(getPushCertificate()); batch.execute(walk, updating); } catch (IOException err) { for (ReceiveCommand cmd : toApply) { if (cmd.getResult() == Result.NOT_ATTEMPTED) cmd.reject(err); } } }
BatchRefUpdate batch = refdb.newBatchUpdate(); batch.addProposedTimestamp(ts); batch.setRefLogIdent(getSystem().newCommitter(ts));