Package org.tmatesoft.hg.internal

Examples of org.tmatesoft.hg.internal.BundleGenerator$ChunkGenerator


      }
      HgBundle b = null;
      if (!outgoing.isEmpty()) {
        //
        // prepare bundle
        BundleGenerator bg = new BundleGenerator(implRepo);
        File bundleFile = bg.create(outgoing.asList());
        progress.worked(20);
        b = new HgLookup(repo.getSessionContext()).loadBundle(bundleFile);
        //
        // send changes
        remoteRepo.unbundle(b, comparator.getRemoteHeads());
View Full Code Here


  public ErrorCollectorExt errorCollector = new ErrorCollectorExt();

  @Test
  public void testCreateBundle() throws Exception {
    final HgRepository hgRepo = Configuration.get().own();
    BundleGenerator bg = new BundleGenerator(HgInternals.getImplementationRepo(hgRepo));
    ArrayList<Nodeid> l = new ArrayList<Nodeid>();
    l.add(Nodeid.fromAscii("9ef1fab9f5e3d51d70941121dc27410e28069c2d")); // 640
    l.add(Nodeid.fromAscii("2f33f102a8fa59274a27ebbe1c2903cecac6c5d5")); // 639
    l.add(Nodeid.fromAscii("d074971287478f69ab0a64176ce2284d8c1e91c3")); // 638
    File bundleFile = bg.create(l);
    HgBundle b = new HgLookup().loadBundle(bundleFile);
    //
    DumbInspector insp = new DumbInspector();
    b.inspectChangelog(insp);
    errorCollector.assertTrue(insp.clogEnter && insp.clogExit);
View Full Code Here

TOP

Related Classes of org.tmatesoft.hg.internal.BundleGenerator$ChunkGenerator

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.