Package org.tmatesoft.hg.core

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


    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)
    int[] change_3_9_new2old = new int[] {7, 9, 4, 6, 3, 4, -1, 3 };
    int[] change_3_9_old2new = new int[] {-1, 3, 3, 4, 4, 6, 7, 9 };
    insp.reset();
View Full Code Here


    int[] change_3_9_old2new = new int[] {-1, 3, 3, 4, 4, 6, 7, 9 };
    insp.reset();
    cmd.range(3, 9).order(NewToOld).executeAnnotate(insp);
    Assert.assertArrayEquals(change_3_9_new2old, insp.getReportedRevisionPairs());
    insp.reset();
    cmd.order(OldToNew).executeAnnotate(insp);
    Assert.assertArrayEquals(change_3_9_old2new, insp.getReportedRevisionPairs());
  }

  @Test
  public void testAnnotateCmdFollowNoFollow() throws Exception {
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.