Package org.tmatesoft.hg.repo

Examples of org.tmatesoft.hg.repo.HgStatusCollector.walk()


    dump.showIgnored = false;
    dump.showClean = false;
    HgStatusCollector sc = new HgStatusCollector(hgRepo);
    final int r1 = 0, r2 = 3;
    System.out.printf("Status for changes between revision %d and %d:\n", r1, r2);
    sc.walk(r1, r2, dump);
    //
    System.out.println("\n\nSame, but sorted in the way hg status does:");
    HgStatusCollector.Record r = sc.status(r1, r2);
    sortAndPrint('M', r.getModified(), null);
    sortAndPrint('A', r.getAdded(), null);
View Full Code Here


      } else {
        sc.setScope(scope); // explicitly set, even if null - would be handy once we reuse StatusCollector
        if (startRevision == TIP) {
          sc.change(endRevision, mediator);
        } else {
          sc.walk(startRevision, endRevision, mediator);
        }
      }
      mediator.checkFailure();
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
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.