Package org.tmatesoft.hg.util

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


      }
      ai.report(lastCsetWithFileChange, inspector, new ProgressSupport.Sub(progress, 100), cancellation);
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    }
    progress.done();
  }
 
  /**
   * Callback to receive annotated lines
   */
 
View Full Code Here


    try {
      return getOutgoingRevisions(ps, getCancelSupport(null, true));
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      ps.done();
    }
  }

  /**
   * Complete information about outgoing changes
View Full Code Here

      localRepo.getChangelog().range(inspector, outRevIndex);
      inspector.checkFailure();
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      ps.done();
    }
  }

  private RepositoryComparator getComparator(ProgressSupport ps, CancelSupport cs) throws HgRemoteConnectionException, CancelledException, HgRuntimeException {
    if (remoteRepo == null) {
View Full Code Here

      progress.worked(1);
      cancel.checkCancelled();
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      progress.done();
    }
  }

  /**
   * Walk file history {@link #range(int, int) range} and report changes (diff) for each revision
View Full Code Here

      }
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      if (progress != null) {
        progress.done();
      }
    }
  }

  /**
 
View Full Code Here

      progress.worked(1);
      cancel.checkCancelled();
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      progress.done();
    }
  }

  private void checkFile() {
    if (df == null) {
View Full Code Here

      progress.worked(5);
      incoming.unlink(); // keep the file only in case of failure
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      progress.done();
    }
  }
 
  public Collection<Nodeid> getPulledRevisions() {
    return added == null ? Collections.<Nodeid>emptyList() : added.asList();
View Full Code Here

        completeChanges.inspectAll(mate);
        mate.checkFailure();
        mate.complete();
      } finally {
        completeChanges.unlink();
        progress.done();
      }
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    }
    return new HgLookup().detect(destination);
View Full Code Here

      } // file != null
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      csetTransform = null;
      progressHelper.done();
    }
  }
 
  private static class BatchChangesetInspector extends AdapterPlug implements HgChangelog.Inspector {
    private static class BatchRecord {
View Full Code Here

      } // for fileRenamesQueue;
      frqBuilder.reportRenameIfNotInQueue(fileRenamesQueue, renameHandler);
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    }
    progressHelper.done();
  }
 
  private static class QueueElement {
    private final HgDataFile df;
    private final Nodeid lastRev;
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.