Package org.tmatesoft.hg.core

Examples of org.tmatesoft.hg.core.HgStatusCommand.change()


    };

    StatusHandler statusHandler = new StatusHandler();
    int changeRev = cmdLineOpts.getSingleInt(BAD_REVISION, "--change");
    if (changeRev != BAD_REVISION) {
      cmd.change(changeRev);
    } else {
      List<String> revisions = cmdLineOpts.getList("--rev");
      int size = revisions.size();
      if (size > 1) {
        cmd.base(Integer.parseInt(revisions.get(size - 2))).revision(Integer.parseInt(revisions.get(size - 1)));
View Full Code Here


    final HgStatusCommand cmd = new HgStatusCommand(repo).defaults();
    StatusCollector sc;
    for (int r : new int[] {2,3,4}) {
      statusParser.reset();
      eh.run("hg", "status", "-C", "--change", String.valueOf(r));
      cmd.change(r).execute(sc = new StatusCollector());
      sr.report("hg status -C --change " + r, sc);
    }
    // a and d from r5 are missing in r3
    statusParser.reset();
    eh.run("hg", "status", "-C", "--rev", "3", "--rev", "5");
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.