Examples of followRenames()


Examples of org.tmatesoft.hg.core.HgChangesetFileSneaker.followRenames()

 
  private void checkFileSneakerPerformance() throws Exception {
    HgChangesetFileSneaker fs1 = new HgChangesetFileSneaker(hgRepo);
    HgChangesetFileSneaker fs2 = new HgChangesetFileSneaker(hgRepo);
    fs1.followRenames(true);
    fs2.followRenames(true);
    Nodeid cset = hgRepo.getChangelog().getRevision(2);
    Path fname = Path.create("dir9/file9"); // close to the manifest end
    fs1.changeset(cset);
    fs2.changeset(cset);
//    hgRepo.getManifest().getFileRevision(TIP, fname);
View Full Code Here

Examples of org.tmatesoft.hg.core.HgChangesetFileSneaker.followRenames()

    final int result1 = sink.toArray().length;
    HgChangesetFileSneaker i = new HgChangesetFileSneaker(repo);
    boolean result = i.changeset(cset).checkExists(file);
    assertFalse(result);
    assertFalse(i.exists());
    result = i.followRenames(true).checkExists(file);
    assertTrue(result);
    assertTrue(i.exists());
    HgCatCommand cmd2 = new HgCatCommand(repo).revision(i.getFileRevision());
    final ByteArrayChannel sink2 = new ByteArrayChannel();
    cmd2.execute(sink2);
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.