129130131132133134135136137138139
tr.commit(); } catch (RuntimeException ex) { tr.rollback(); throw ex; } catch (HgException ex) { tr.rollback(); throw ex; } progress.worked(1); progress.done(); } catch (HgRuntimeException ex) {
164165166167168169170171172173174
try { // TODO same code in HgAddRemoveCommand and similar in HgCommitCommand dirstateBuilder.serialize(tr); tr.commit(); } catch (RuntimeException ex) { tr.rollback(); throw ex; } catch (HgException ex) { tr.rollback(); throw ex; }
167168169170171172173174175176177