Examples of preparePack()


Examples of org.eclipse.jgit.storage.pack.PackWriter.preparePack()

        pw.preparePack(pm, wantIds, commonBase);
      } else {
        walk.reset();

        ObjectWalk ow = walk.toObjectWalkWithSameObjects();
        pw.preparePack(pm, ow, wantAll, commonBase);
        rw = ow;
      }

      if (options.contains(OPTION_INCLUDE_TAG)) {
        for (Ref ref : refs.values()) {
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.preparePack()

      if (tagTargets != null)
        pw.setTagTargets(tagTargets);
      if (excludeObjects != null)
        for (PackIndex idx : excludeObjects)
          pw.excludeObjects(idx);
      pw.preparePack(pm, want, have);
      if (pw.getObjectCount() == 0)
        return null;

      // create temporary files
      String id = pw.computeName().getName();
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.preparePack()

      if (depth > 0)
        pw.setShallowPack(depth, unshallowCommits);

      RevWalk rw = walk;
      if (wantAll.isEmpty()) {
        pw.preparePack(pm, wantIds, commonBase);
      } else {
        walk.reset();

        ObjectWalk ow = walk.toObjectWalkWithSameObjects();
        pw.preparePack(pm, ow, wantAll, commonBase);
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.preparePack()

        pw.preparePack(pm, wantIds, commonBase);
      } else {
        walk.reset();

        ObjectWalk ow = walk.toObjectWalkWithSameObjects();
        pw.preparePack(pm, ow, wantAll, commonBase);
        rw = ow;
      }

      if (options.contains(OPTION_INCLUDE_TAG) && refs != null) {
        for (Ref ref : refs.values()) {
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.preparePack()

      }

      writer.setUseCachedPacks(true);
      writer.setThin(thinPack);
      writer.setDeltaBaseAsOffset(capableOfsDelta);
      writer.preparePack(monitor, newObjects, remoteObjects);
      start = System.currentTimeMillis();
      writer.writePack(monitor, monitor, out);
    } finally {
      writer.release();
    }
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.preparePack()

      for (final Ref r : getRefs()) {
        have.add(r.getObjectId());
        if (r.getPeeledObjectId() != null)
          have.add(r.getPeeledObjectId());
      }
      writer.preparePack(monitor, need, have);

      // We don't have to continue further if the pack will
      // be an empty pack, as the remote has all objects it
      // needs to complete this change.
      //
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.preparePack()

      final HashSet<ObjectId> exc = new HashSet<ObjectId>();
      inc.addAll(include.values());
      for (final RevCommit r : assume)
        exc.add(r.getId());
      packWriter.setThin(exc.size() > 0);
      packWriter.preparePack(monitor, inc, exc);

      final Writer w = new OutputStreamWriter(os, Constants.CHARSET);
      w.write(TransportBundle.V2_BUNDLE_SIGNATURE);
      w.write('\n');
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.preparePack()

    final PackWriter pw = new PackWriter(cfg, walk.getObjectReader());
    try {
      pw.setUseCachedPacks(true);
      pw.setDeltaBaseAsOffset(options.contains(OPTION_OFS_DELTA));
      pw.setThin(options.contains(OPTION_THIN_PACK));
      pw.preparePack(pm, wantAll, commonBase);
      if (options.contains(OPTION_INCLUDE_TAG)) {
        for (final Ref r : refs.values()) {
          final RevObject o;
          try {
            o = walk.parseAny(r.getObjectId());
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.preparePack()

        pw.setTagTargets(tagTargets);
      }

      RevWalk rw = walk;
      if (wantAll.isEmpty()) {
        pw.preparePack(pm, wantIds, commonBase);
      } else {
        walk.reset();

        ObjectWalk ow = walk.toObjectWalkWithSameObjects();
        pw.preparePack(pm, ow, wantAll, commonBase);
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.preparePack()

        pw.preparePack(pm, wantIds, commonBase);
      } else {
        walk.reset();

        ObjectWalk ow = walk.toObjectWalkWithSameObjects();
        pw.preparePack(pm, ow, wantAll, commonBase);
        rw = ow;
      }

      if (options.contains(OPTION_INCLUDE_TAG)) {
        for (Ref ref : refs.values()) {
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.