Examples of executeAnnotate()


Examples of org.tmatesoft.hg.core.HgDiffCommand.executeAnnotate()

      /*, TIP */};
    for (int cs : toTest) {
      ar.run(cs, false);
      diffCmd.range(0, cs);
      final ReverseAnnotateInspector insp = new ReverseAnnotateInspector();
      diffCmd.executeAnnotate(insp);
      AnnotateInspector fa = new AnnotateInspector().fill(cs, insp);
      doAnnotateLineCheck(cs, ar, fa);
    }
  }
 
View Full Code Here

Examples of org.tmatesoft.hg.core.HgDiffCommand.executeAnnotate()

    final HgDiffCommand diffCmd = new HgDiffCommand(repo).file(df).order(NewToOld);
    for (int cs : new int[] { 4, 6 /*, 8 see below*/, TIP}) {
      ar.run(cs, false);
      diffCmd.range(0, cs);
      final ReverseAnnotateInspector insp = new ReverseAnnotateInspector();
      diffCmd.executeAnnotate(insp);
      AnnotateInspector fa = new AnnotateInspector().fill(cs, insp);
      doAnnotateLineCheck(cs, ar, fa);
    }
    /*`hg annotate -r 8` and HgBlameFacility give different result
     * for "r0, line 5" line, which was deleted in rev2 and restored back in
View Full Code Here

Examples of org.tmatesoft.hg.core.HgDiffCommand.executeAnnotate()

    HgDataFile df = repo.getFileNode("file1");
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    DiffOutInspector dump = new DiffOutInspector(new PrintStream(bos));
    HgDiffCommand diffCmd = new HgDiffCommand(repo);
    diffCmd.file(df).range(0, TIP).order(OldToNew);
    diffCmd.executeAnnotate(dump);
    LinkedList<String> apiResult = new LinkedList<String>(Arrays.asList(splitLines(bos.toString())));
   
    /*
     * FIXME this is an ugly hack to deal with the way `hg diff -c <mergeRev>` describes the change
     * and our merge handling approach. For merged revision m, and lines changed both in p1 and p2
View Full Code Here

Examples of org.tmatesoft.hg.core.HgDiffCommand.executeAnnotate()

    int[] change_2_8_new2old = new int[] {4, 6, 3, 4, -1, 3};
    int[] change_2_8_old2new = new int[] {-1, 3, 3, 4, 4, 6 };
    final HgDiffCommand cmd = new HgDiffCommand(repo);
    cmd.file(df);
    cmd.range(2, 8).order(NewToOld);
    cmd.executeAnnotate(insp);
    Assert.assertArrayEquals(change_2_8_new2old, insp.getReportedRevisionPairs());
    insp.reset();
    cmd.order(OldToNew).executeAnnotate(insp);
    Assert.assertArrayEquals(change_2_8_old2new, insp.getReportedRevisionPairs());
    // same as 2 to 8, with addition of rev9 changes rev7  (rev6 to rev7 didn't change content, only name)
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.