Package org.tmatesoft.hg.util

Examples of org.tmatesoft.hg.util.ProgressSupport.done()


        } catch (IOException ex) {
          throw new HgIOException("Can't write down branch information", ex, branchFile);
        }
      }
      progress.worked(1);
      progress.done();
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    }
  }
View Full Code Here


            throw new HgInvalidStateException("Bad sink implementation (consumes no bytes) results in endless loop");
          }
          buf.compact(); // ensure (a) there's space for new (b) data starts at 0
          progressSupport.worked(consumed);
        }
        progressSupport.done(); // XXX shall specify whether #done() is invoked always or only if completed successfully.
      } catch (IOException ex) {
        recordFailure(ex);
      } catch (CancelledException ex) {
        recordFailure(ex);
      }
View Full Code Here

          buf.compact();
        }
      } catch (IOException ex) {
        throw new HgInvalidFileException("Working copy read failed", ex, f);
      } finally {
        progress.done();
        if (fis != null) {
          new FileUtils(getRepo().getSessionContext().getLog(), this).closeQuietly(fis);
        }
      }
    } else {
View Full Code Here

      });
      transformer.checkFailure();
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      ps.done();
    }
  }

  private RepositoryComparator getComparator() throws CancelledException, HgRuntimeException {
    if (remoteRepo == null) {
View Full Code Here

      e.initCause(ex);
      throw new HgLibraryFailureException(e);
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      progress.done();
    }
  }
 
  public Collection<Nodeid> getPushedRevisions() {
    return outgoing == null ? Collections.<Nodeid>emptyList() : outgoing.asList();
View Full Code Here

      } catch (HgException ex) {
        tr.rollback();
        throw ex;
      }
      progress.worked(1);
      progress.done();
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      wdLock.release();
    }
View Full Code Here

      } catch (HgException ex) {
        tr.rollback();
        throw ex;
      }
      progress.worked(1);
      progress.done();
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      wdLock.release();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.