Examples of CsetParamKeeper


Examples of org.tmatesoft.hg.internal.CsetParamKeeper

   * @return <code>this</code> for convenience
   * @throws HgBadArgumentException if failed to find supplied changeset revision
   */
  public HgLogCommand changeset(Nodeid nid) throws HgBadArgumentException {
    // XXX perhaps, shall support multiple (...) arguments and extend #execute to handle not only range, but also set of revisions.
    final int csetRevIndex = new CsetParamKeeper(repo).set(nid).get();
    return range(csetRevIndex, csetRevIndex);
  }
View Full Code Here

Examples of org.tmatesoft.hg.internal.CsetParamKeeper

   * @param cset2 range end revision
   * @return <code>this</code> instance for convenience
   * @throws HgBadArgumentException if revisions are not valid changeset identifiers
   */
  public HgManifestCommand range(Nodeid cset1, Nodeid cset2) throws HgBadArgumentException {
    CsetParamKeeper pk = new CsetParamKeeper(repo);
    int r1 = pk.set(cset1).get();
    int r2 = pk.set(cset2).get();
    return range(r1, r2);
  }
View Full Code Here

Examples of org.tmatesoft.hg.internal.CsetParamKeeper

   * @return <code>this</code> for convenience
   * @throws HgBadArgumentException if failed to find supplied changeset revision
   */
  public HgManifestCommand changeset(Nodeid nid) throws HgBadArgumentException {
    // XXX also see HgLogCommand#changeset(Nodeid)
    final int csetRevIndex = new CsetParamKeeper(repo).set(nid).get();
    return range(csetRevIndex, csetRevIndex);
  }
View Full Code Here

Examples of org.tmatesoft.hg.internal.CsetParamKeeper

  private CsetParamKeeper changesetToCheckout;
  private boolean keepOriginal = true;

  public HgRevertCommand(HgRepository hgRepo) {
    repo = hgRepo;
    changesetToCheckout = new CsetParamKeeper(hgRepo);
    changesetToCheckout.doSet(HgRepository.WORKING_COPY); // XXX WORKING_COPY_PARENT, in fact
  }
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.