Package org.tmatesoft.hg.test.LogOutputParser

Examples of org.tmatesoft.hg.test.LogOutputParser.Record


    final List<Record> fname2Follow = new LinkedList<LogOutputParser.Record>(changelogParser.getResult());
    changelogParser.reset();
    eh.run("hg", "log", "--debug", fname2, "--cwd", repo.getLocation());
    // fname2Follow.retainAll(changelogParser.getResult());
    for (Iterator<Record> it = fname2Follow.iterator(); it.hasNext();) {
      Record r = it.next();
      boolean belongsToSoleFname2History = false;
      for (Record d : changelogParser.getResult()) {
        if (d.changesetIndex == r.changesetIndex) {
          assert d.changesetNodeid.equals(r.changesetNodeid) : "[sanity]";
          belongsToSoleFname2History = true;
View Full Code Here


    for (HgChangeset cs : hg4jResult) {
      if (!consoleResultItr.hasNext()) {
        errorCollector.addError(new AssertionError("Ran out of console results while there are still hg4j results"));
        break;
      }
      Record cr = consoleResultItr.next();
      // flags, not separate checkThat() because when lists are large, and do not match,
      // number of failures may slow down test process significantly
      int x = cs.getRevisionIndex() == cr.changesetIndex ? 0x1 : 0;
      x |= cs.getDate().toString().equals(cr.date) ? 0x2 : 0;
      x |= cs.getNodeid().toString().equals(cr.changesetNodeid) ? 0x4 : 0;
View Full Code Here

TOP

Related Classes of org.tmatesoft.hg.test.LogOutputParser.Record

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.