Examples of done()


Examples of org.tmatesoft.hg.internal.AddRevInspector.done()

      final AddRevInspector insp;
      Transaction.Factory trFactory = implRepo.getTransactionFactory();
      Transaction tr = trFactory.create(repo);
      try {
        incoming.inspectAll(insp = new AddRevInspector(implRepo, tr));
        insp.done();
        tr.commit();
      } catch (HgRuntimeException ex) {
        tr.rollback();
        throw ex;
      } catch (HgIOException ex) {
View Full Code Here

Examples of org.tmatesoft.hg.internal.ByteArrayDataAccess.done()

      DataAccess slice = new ByteArrayDataAccess(data); // XXX in fact, may pass a slicing DataAccess.
      // Just need to make sure that we seek to proper location afterwards (where next GroupElement starts),
      // regardless whether that slice has read it or not.
      GroupElement ge = new GroupElement(nb, prevNodeid, slice);
      good2go = inspector.element(ge);
      slice.done(); // BADA doesn't implement done(), but it could (e.g. free array)
      /// and we'd better tell it we are not going to use it any more. However, it's important to ensure Inspector
      // implementations out there do not retain GroupElement.rawData()
      prevNodeid = ge.node();
      len = da.isEmpty() ? 0 : da.readInt();
    }
View Full Code Here

Examples of org.tmatesoft.hg.internal.DataAccess.done()

      internalInspectChangelog(da, inspector);
    } catch (IOException ex) {
      throw new HgIOException("Failed to inspect changelog in the bundle", ex, bundleFile);
    } finally {
      if (da != null) {
        da.done();
      }
      lifecycleTearDown(lifecycle);
    }
  }
View Full Code Here

Examples of org.tmatesoft.hg.internal.DataSerializer.done()

          int actualCompressedLenWritten = revlogDataZip.writeCompressedData(sds);
          if (actualCompressedLenWritten != compressedLen) {
            throw new HgInvalidStateException(String.format("Expected %d bytes of compressed data, but actually wrote %d in %s", compressedLen, actualCompressedLenWritten, filename));
          }
        }
        sds.done();
        //
        revisionSequence.add(node);
        prevRevContent.done();
        prevRevContent = new ByteArrayDataAccess(content);
      } catch (HgIOException ex) {
View Full Code Here

Examples of org.tmatesoft.hg.internal.DataSerializer.OutputStreamSerializer.done()

        new ChunkGenerator(outRaw, clogMap).iterate(s, fileRevs.toArray(true));
        outRaw.writeInt(0); // null chunk for file group
      }
    }
    outRaw.writeInt(0); // null chunk to indicate no more files (although BundleFormat page doesn't mention this)
    outRaw.done();
    osBundle.flush();
    osBundle.close();
    //return new HgBundle(repo.getSessionContext(), repo.getDataAccess(), bundleFile);
    return bundleFile;
  }
View Full Code Here

Examples of org.tmatesoft.hg.internal.RevlogDump.RevlogReader.done()

    byte[] result = seqPatch.apply(baseRevisionContent, rr.actualLen);
//    byte[] result = normalizedPatch.apply(baseRevisionContent, rr.actualLen);
    final long end2 = System.currentTimeMillis();
    byte[] origin = getRevisionTrueContent(indexFile.getParentFile(), rr.entryIndex, rr.linkRevision);
    final long end3 = System.currentTimeMillis();
    rr.done();
    System.out.printf("Collected patches up to revision %d. Patches total: %d, sequentialPatch contains %d elements, normalized: %d\n", rr.entryIndex, rr.entryIndex - startEntryIndex + 1, seqPatch.count(), normalizedPatch.count());
    if (!Arrays.equals(result, origin)) {
      if (shallDumpDiff) {
        diff(result, origin);
        dumpLineDifference(result, origin);
View Full Code Here

Examples of org.tmatesoft.hg.internal.Transaction.done()

    //
    // transaction commit
    Transaction tr1 = f.create(ctx);
    File tf1 = tr1.prepare(f1);
    RepoUtils.modifyFileAppend(tf1, "2");
    tr1.done(tf1);
    File tf2 = tr1.prepare(f2);
    errorCollector.assertTrue(tf2.exists());
    RepoUtils.modifyFileAppend(tf2, "A");
    tr1.done(tf2);
    tr1.commit();
View Full Code Here

Examples of org.tmatesoft.hg.util.ProgressSupport.done()

      }
      ai.report(lastCsetWithFileChange, inspector, new ProgressSupport.Sub(progress, 100), cancellation);
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    }
    progress.done();
  }
 
  /**
   * Callback to receive annotated lines
   */
 
View Full Code Here

Examples of org.xnap.commons.gui.ProgressDialog.done()

        catch (Throwable e) {
          ret[0] = e;
        }
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            dialog.done();
          }
        });
      }
    };
View Full Code Here

Examples of org.xnap.commons.io.SubTaskProgressMonitor.done()

        String serverCoverFilename = null;
        if (fax.cover != null && fax.coverIn != null) {
          monitor.setText(i18n.tr("Generating cover"));
          SubTaskProgressMonitor coverMonitor = new SubTaskProgressMonitor(monitor, 5, 0);
          StringBuffer data = fax.cover.generate(fax.coverIn, coverMonitor);
          coverMonitor.done();
         
            // Cover senden
                    byte[] buffer = data.toString().getBytes(FaxCover.CHARSET);
          TransferMonitor transferMonitor = new TransferMonitor(monitor, 5, buffer.length);
          client.addTransferListener(transferMonitor);
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.