Examples of PackConfig


Examples of org.eclipse.jgit.storage.pack.PackConfig

   *            repository where objects are stored.
   * @param reader
   *            reader to read from the repository with.
   */
  public PackWriter(final Repository repo, final ObjectReader reader) {
    this(new PackConfig(repo), reader);
  }
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackConfig

  protected GarbageCollectCommand(Repository repo) {
    super(repo);
    if (!(repo instanceof FileRepository))
      throw new UnsupportedOperationException(MessageFormat.format(
          JGitText.get().unsupportedGC, repo.getClass().toString()));
    pconfig = new PackConfig(repo);
  }
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackConfig

          ConfigConstants.CONFIG_GC_SECTION,
          ConfigConstants.CONFIG_KEY_AGGRESSIVE_DEPTH,
          DEFAULT_GC_AGGRESSIVE_DEPTH));
      pconfig.setReuseObjects(false);
    } else
      pconfig = new PackConfig(repo);
    return this;
  }
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackConfig

  @Before
  public void setUp() throws Exception {
    super.setUp();
    os = new ByteArrayOutputStream();
    config = new PackConfig(db);

    dst = createBareRepository();
    File alt = new File(dst.getObjectDatabase().getDirectory(), "info/alternates");
    alt.getParentFile().mkdirs();
    write(alt, db.getObjectDatabase().getDirectory().getAbsolutePath() + "\n");
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackConfig

      assertEquals(9, pIt.next().getObjectCount());
    }
  }

  private void configureGc(GC myGc, boolean aggressive) {
    PackConfig pconfig = new PackConfig(repo);
    if (aggressive) {
      pconfig.setDeltaSearchWindowSize(250);
      pconfig.setMaxDeltaDepth(250);
      pconfig.setReuseObjects(false);
    } else
      pconfig = new PackConfig(repo);
    myGc.setPackConfig(pconfig);
  }
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackConfig

   *
   * @return the pack configuration. Never null.
   */
  public PackConfig getPackConfig() {
    if (packConfig == null)
      packConfig = new PackConfig(local);
    return packConfig;
  }
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackConfig

        err.flush();
      }
      throw noPack;
    }

    PackConfig cfg = packConfig;
    if (cfg == null)
      cfg = new PackConfig(db);
    final PackWriter pw = new PackWriter(cfg, walk.getObjectReader());
    try {
      pw.setUseCachedPacks(true);
      pw.setReuseDeltaCommits(true);
      pw.setDeltaBaseAsOffset(options.contains(OPTION_OFS_DELTA));
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackConfig

      if (!options.contains(OPTION_NO_PROGRESS))
        pm = new SideBandProgressMonitor(new SideBandOutputStream(
            SideBandOutputStream.CH_PROGRESS, bufsz, rawOut));
    }

    PackConfig cfg = packConfig;
    if (cfg == null)
      cfg = new PackConfig(db);
    final PackWriter pw = new PackWriter(cfg, walk.getObjectReader());
    try {
      pw.setDeltaBaseAsOffset(options.contains(OPTION_OFS_DELTA));
      pw.setThin(options.contains(OPTION_THIN_PACK));
      pw.preparePack(pm, wantAll, commonBase);
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackConfig

    super.setUp();
    os = new ByteArrayOutputStream();
    packBase = new File(trash, "tmp_pack");
    packFile = new File(trash, "tmp_pack.pack");
    indexFile = new File(trash, "tmp_pack.idx");
    config = new PackConfig(db);
  }
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackConfig

   *
   * @return the pack configuration. Never null.
   */
  public PackConfig getPackConfig() {
    if (packConfig == null)
      packConfig = new PackConfig(local);
    return packConfig;
  }
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.