356357358359360361362363364365366
} catch (Exception e) { abort = true; throw Throwables.propagate(e); } finally { if (abort) { tx.abort(); } } } // Deliberately leaving the @Override annotation commented out so that the class builds
113114115116117118119120121122123
.setProgressListener(cli.getProgressListener()); } report = cmd.call(); tx.commit(); } catch (RuntimeException e) { tx.abort(); if (e instanceof NothingToCommitException) { throw new CommandFailedException(e.getMessage(), e); } throw e; }
117118119120121122123124125126
} tx.command(UpdateRef.class).setName(refName).setNewValue(newCommit).call(); tx.commit(); } catch (Exception e) { tx.abort(); throw Throwables.propagate(e); } } }