Package org.tmatesoft.hg.core

Examples of org.tmatesoft.hg.core.HgLogCommand.changeset()


    // hg parents cmd
    final Pair<Nodeid, Nodeid> wcParents = hgRepo.getWorkingCopyParents();
    ChangesetDumpHandler dump = new ChangesetDumpHandler(hgRepo);
    HgLogCommand cmd = new HgLogCommand(hgRepo);
    if (wcParents.hasFirst()) {
      cmd.changeset(wcParents.first()).execute(dump);
    }
    if (wcParents.hasSecond()) {
      cmd.changeset(wcParents.second()).execute(dump);
    }
    System.out.println("Branch:" + hgRepo.getWorkingCopyBranchName());
View Full Code Here


    HgLogCommand cmd = new HgLogCommand(hgRepo);
    if (wcParents.hasFirst()) {
      cmd.changeset(wcParents.first()).execute(dump);
    }
    if (wcParents.hasSecond()) {
      cmd.changeset(wcParents.second()).execute(dump);
    }
    System.out.println("Branch:" + hgRepo.getWorkingCopyBranchName());
  }
 
  /*
 
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.