Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.TextProgressMonitor


      tn.setFetchThin(thin.booleanValue());
    if (0 <= timeout)
      tn.setTimeout(timeout);
    final FetchResult r;
    try {
      r = tn.fetch(new TextProgressMonitor(), toget);
      if (r.getTrackingRefUpdates().isEmpty())
        return;
    } finally {
      tn.close();
    }
View Full Code Here


  }

  private PushResult executePush() throws NotSupportedException,
      TransportException {
    process = new PushProcess(transport, refUpdates);
    return process.execute(new TextProgressMonitor());
  }
View Full Code Here

  public void test1() throws  IOException {
    File packFile = JGitTestUtil.getTestResourceFile("pack-34be9032ac282b11fa9babdc2b2a93ca996c9c2f.pack");
    final InputStream is = new FileInputStream(packFile);
    try {
      IndexPack pack = new IndexPack(db, is, new File(trash, "tmp_pack1"));
      pack.index(new TextProgressMonitor());
      PackFile file = new PackFile(new File(trash, "tmp_pack1.idx"), new File(trash, "tmp_pack1.pack"));
      assertTrue(file.hasObject(ObjectId.fromString("4b825dc642cb6eb9a060e54bf8d69288fbee4904")));
      assertTrue(file.hasObject(ObjectId.fromString("540a36d136cf413e4b064c2b0e0a4db60f77feab")));
      assertTrue(file.hasObject(ObjectId.fromString("5b6e7c66c276e7610d4a73c70ec1a1f7c1003259")));
      assertTrue(file.hasObject(ObjectId.fromString("6ff87c4664981e4397625791c8ea3bbb5f2279a3")));
View Full Code Here

  public void test2() throws  IOException {
    File packFile = JGitTestUtil.getTestResourceFile("pack-df2982f284bbabb6bdb59ee3fcc6eb0983e20371.pack");
    final InputStream is = new FileInputStream(packFile);
    try {
      IndexPack pack = new IndexPack(db, is, new File(trash, "tmp_pack2"));
      pack.index(new TextProgressMonitor());
      PackFile file = new PackFile(new File(trash, "tmp_pack2.idx"), new File(trash, "tmp_pack2.pack"));
      assertTrue(file.hasObject(ObjectId.fromString("02ba32d3649e510002c21651936b7077aa75ffa9")));
      assertTrue(file.hasObject(ObjectId.fromString("0966a434eb1a025db6b71485ab63a3bfbea520b6")));
      assertTrue(file.hasObject(ObjectId.fromString("09efc7e59a839528ac7bda9fa020dc9101278680")));
      assertTrue(file.hasObject(ObjectId.fromString("0a3d7772488b6b106fb62813c4d6d627918d9181")));
View Full Code Here

          .findRemoteRefUpdatesFor(refSpecs);

      final URIish uri = transport.getURI();
      final PushResult result;
      try {
        result = transport.push(new TextProgressMonitor(), toPush);
      } finally {
        transport.close();
      }
      printPushResult(uri, result);
    }
View Full Code Here

    final org.eclipse.jgit.transport.IndexPack ip;
    in = new BufferedInputStream(System.in);
    ip = new org.eclipse.jgit.transport.IndexPack(db, in, base);
    ip.setFixThin(fixThin);
    ip.setIndexVersion(indexVersion);
    ip.index(new TextProgressMonitor());
  }
View Full Code Here

     * @return a ProgressMonitor for use
     */
    public static ProgressMonitor getMonitor( ScmLogger logger )
    {
        // X TODO write an own ProgressMonitor which logs to ScmLogger!
        return new TextProgressMonitor();
    }
View Full Code Here

      if (timeout >= 0)
         fetch.setTimeout(timeout);
      fetch.setDryRun(dryRun);
      fetch.setRemote(remote);
      fetch.setThin(thin);
      fetch.setProgressMonitor(new TextProgressMonitor());

      FetchResult result = fetch.call();
      return result;
   }
View Full Code Here

   public PullResult pull(final Git git, final int timeout) throws GitAPIException
   {
      PullCommand pull = git.pull();
      if (timeout >= 0)
         pull.setTimeout(timeout);
      pull.setProgressMonitor(new TextProgressMonitor());

      PullResult result = pull.call();
      return result;
   }
View Full Code Here

      if (timeout >= 0)
         fetch.setTimeout(timeout);
      fetch.setDryRun(dryRun);
      fetch.setRemote(remote);
      fetch.setThin(thin);
      fetch.setProgressMonitor(new TextProgressMonitor());

      FetchResult result = fetch.call();
      return result;
   }
View Full Code Here

TOP

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

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.