Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.ProgressMonitor


  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;
    }
View Full Code Here


    this(userRunningTask, credentials, path, srcRef, tags, force);
    this.cookie = (Cookie) cookie;
  }

  private IStatus doPush(IProgressMonitor monitor) throws IOException, CoreException, URISyntaxException, GitAPIException {
    ProgressMonitor gitMonitor = new EclipseGitProgressTransformer(monitor);
    // /git/remote/{remote}/{branch}/file/{path}
    File gitDir = GitUtils.getGitDir(path.removeFirstSegments(2));
    Repository db = null;
    JSONObject result = new JSONObject();
    try {
View Full Code Here

    this(userRunningTask, credentials, path, force);
    this.cookie = (Cookie) cookie;
  }

  private IStatus doPull(IProgressMonitor monitor) throws IOException, GitAPIException, CoreException {
    ProgressMonitor gitMonitor = new EclipseGitProgressTransformer(monitor);
    Repository db = null;
    try {
      db = FileRepositoryBuilder.create(GitUtils.getGitDir(path));
      Git git = new Git(db);
      PullCommand pc = git.pull();
View Full Code Here

      setFinalMessage(NLS.bind("Fetching {0}/{1} for {2} done.", bindings));
    }
  }

  private IStatus doFetch(IProgressMonitor monitor) throws IOException, CoreException, URISyntaxException, GitAPIException {
    ProgressMonitor gitMonitor = new EclipseGitProgressTransformer(monitor);
    Repository db = null;
    try {
      db = getRepository();
      Git git = new Git(db);
      FetchCommand fc = git.fetch();
View Full Code Here

      return false;
    }
  }

  private void sendPack(final boolean sideband) throws IOException {
    ProgressMonitor pm = NullProgressMonitor.INSTANCE;
    OutputStream packOut = rawOut;
    SideBandOutputStream msgOut = null;

    if (sideband) {
      int bufsz = SideBandOutputStream.SMALL_BUF;
View Full Code Here

  private void sendPack() throws IOException {
    final boolean sideband = options.contains(OPTION_SIDE_BAND)
        || options.contains(OPTION_SIDE_BAND_64K);

    ProgressMonitor pm = NullProgressMonitor.INSTANCE;
    OutputStream packOut = rawOut;

    if (sideband) {
      int bufsz = SideBandOutputStream.SMALL_BUF;
      if (options.contains(OPTION_SIDE_BAND_64K))
View Full Code Here

      dw.search(monitor, list, 0, cnt);
      return;
    }

    final DeltaCache dc = new ThreadSafeDeltaCache(config);
    final ProgressMonitor pm = new ThreadSafeProgressMonitor(monitor);

    // Guess at the size of batch we want. Because we don't really
    // have a way for a thread to steal work from another thread if
    // it ends early, we over partition slightly so the work units
    // are a bit smaller.
View Full Code Here

        Git git = null;
        try
        {

            ProgressMonitor monitor = JGitUtils.getMonitor( getLogger() );

            String branch = version != null ? version.getName() : null;

            if ( StringUtils.isBlank( branch ) )
            {
View Full Code Here

    // abort while the client is computing.
    //
    if (timeoutIn != null)
      timeoutIn.setTimeout(10 * timeout * 1000);

    ProgressMonitor receiving = NullProgressMonitor.INSTANCE;
    ProgressMonitor resolving = NullProgressMonitor.INSTANCE;
    if (sideBand)
      resolving = new SideBandProgressMonitor(msgOut);

    ObjectInserter ins = db.newObjectInserter();
    try {
View Full Code Here

  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;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.lib.ProgressMonitor

Copyright © 2018 www.massapicom. 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.