Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.NullProgressMonitor


  }

  private static void write(final File[] files, final PackWriter pw)
      throws IOException {
    final long begin = files[0].getParentFile().lastModified();
    NullProgressMonitor m = NullProgressMonitor.INSTANCE;
    OutputStream out;

    out = new SafeBufferedOutputStream(new FileOutputStream(files[0]));
    try {
      pw.writePack(m, m, out);
View Full Code Here


   * @throws Exception
   */
  public void packAndPrune() throws Exception {
    if (db.getObjectDatabase() instanceof ObjectDirectory) {
      ObjectDirectory odb = (ObjectDirectory) db.getObjectDatabase();
      NullProgressMonitor m = NullProgressMonitor.INSTANCE;

      final File pack, idx;
      PackWriter pw = new PackWriter(db);
      try {
        Set<ObjectId> all = new HashSet<ObjectId>();
View Full Code Here

  private void createVerifyOpenPack(final Set<ObjectId> interestings,
      final Set<ObjectId> uninterestings, final boolean thin,
      final boolean ignoreMissingUninteresting, boolean useBitmaps)
      throws MissingObjectException, IOException {
    NullProgressMonitor m = NullProgressMonitor.INSTANCE;
    writer = new PackWriter(config, db.newObjectReader());
    writer.setUseBitmaps(useBitmaps);
    writer.setThin(thin);
    writer.setIgnoreMissingUninteresting(ignoreMissingUninteresting);
    writer.preparePack(m, interestings, uninterestings);
View Full Code Here

    verifyOpenPack(thin);
  }

  private void createVerifyOpenPack(final List<RevObject> objectSource)
      throws MissingObjectException, IOException {
    NullProgressMonitor m = NullProgressMonitor.INSTANCE;
    writer = new PackWriter(config, db.newObjectReader());
    writer.preparePack(objectSource.iterator());
    assertEquals(objectSource.size(), writer.getObjectCount());
    writer.writePack(m, m, os);
    writer.release();
View Full Code Here

   * @throws Exception
   */
  public void packAndPrune() throws Exception {
    if (db.getObjectDatabase() instanceof ObjectDirectory) {
      ObjectDirectory odb = (ObjectDirectory) db.getObjectDatabase();
      NullProgressMonitor m = NullProgressMonitor.INSTANCE;

      final File pack, idx;
      PackWriter pw = new PackWriter(db);
      try {
        Set<ObjectId> all = new HashSet<ObjectId>();
View Full Code Here

  private void createVerifyOpenPack(final Collection<ObjectId> interestings,
      final Collection<ObjectId> uninterestings, final boolean thin,
      final boolean ignoreMissingUninteresting)
      throws MissingObjectException, IOException {
    NullProgressMonitor m = NullProgressMonitor.INSTANCE;
    writer = new PackWriter(config, db.newObjectReader());
    writer.setThin(thin);
    writer.setIgnoreMissingUninteresting(ignoreMissingUninteresting);
    writer.preparePack(m, interestings, uninterestings);
    writer.writePack(m, m, os);
View Full Code Here

    verifyOpenPack(thin);
  }

  private void createVerifyOpenPack(final Iterator<RevObject> objectSource)
      throws MissingObjectException, IOException {
    NullProgressMonitor m = NullProgressMonitor.INSTANCE;
    writer = new PackWriter(config, db.newObjectReader());
    writer.preparePack(objectSource);
    writer.writePack(m, m, os);
    writer.release();
    verifyOpenPack(false);
View Full Code Here

  }

  private static void write(final File[] files, final PackWriter pw)
      throws IOException {
    final long begin = files[0].getParentFile().lastModified();
    NullProgressMonitor m = NullProgressMonitor.INSTANCE;
    OutputStream out;

    out = new BufferedOutputStream(new FileOutputStream(files[0]));
    try {
      pw.writePack(m, m, out);
View Full Code Here

TOP

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

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.