Package org.tmatesoft.hg.internal

Examples of org.tmatesoft.hg.internal.CsetParamKeeper


   * @param revisionIndex index of changelog revision
   * @return <code>this</code> for convenience
   * @throws HgBadArgumentException if failed to find supplied changeset revision
   */
  public HgCatCommand changeset(int revisionIndex) throws HgBadArgumentException {
    int ri = new CsetParamKeeper(repo).set(revisionIndex).get();
    return changeset(repo.getChangelog().getRevision(ri));
  }
View Full Code Here


  private Path file;
  private boolean followRename;

  public HgAnnotateCommand(HgRepository hgRepo) {
    repo = hgRepo;
    annotateRevision = new CsetParamKeeper(repo);
    annotateRevision.doSet(TIP);
  }
View Full Code Here

    repo = hgRepo;
    firstCset = secondCset = ancestorCset = BAD_REVISION;
  }
 
  public HgMergeCommand changeset(Nodeid changeset) throws HgBadArgumentException {
    initHeadsAndAncestor(new CsetParamKeeper(repo).set(changeset).get());
    return this;
  }
View Full Code Here

    initHeadsAndAncestor(new CsetParamKeeper(repo).set(changeset).get());
    return this;
  }
 
  public HgMergeCommand changeset(int revisionIndex) throws HgBadArgumentException {
    initHeadsAndAncestor(new CsetParamKeeper(repo).set(revisionIndex).get());
    return this;
  }
View Full Code Here

  private final CsetParamKeeper revisionToCheckout;
  private boolean cleanCheckout;

  public HgCheckoutCommand(HgRepository hgRepo) {
    repo = hgRepo;
    revisionToCheckout = new CsetParamKeeper(repo);
  }
View Full Code Here

   * @param changeset changelog revision, left range boundary if used in conjunction with {@link #revision(int)} 
   * @return <code>this</code> for convenience
   * @throws HgBadArgumentException if revision is not a valid changeset identifier
   */
  public HgStatusCommand base(Nodeid changeset) throws HgBadArgumentException {
    int ri = new CsetParamKeeper(repo).set(changeset).get();
    return base(ri);
  }
View Full Code Here

   * @param changeset changelog revision, right range boundary if <code>base</code> revision is set 
   * @return <code>this</code> for convenience
   * @throws HgBadArgumentException if revision is not a valid changeset identifier
   */
  public HgStatusCommand revision(Nodeid changeset) throws HgBadArgumentException {
    int ri = new CsetParamKeeper(repo).set(changeset).get();
    return revision(ri);
  }
View Full Code Here

  private final CsetParamKeeper clogRevIndexStart, clogRevIndexEnd;
  private HgIterateDirection iterateDirection = HgIterateDirection.NewToOld;

  public HgDiffCommand(HgRepository hgRepo) {
    repo = hgRepo;
    clogRevIndexStart = new CsetParamKeeper(hgRepo);
    clogRevIndexEnd = new CsetParamKeeper(hgRepo);
  }
View Full Code Here

   * @param cset2 range end revision
   * @return <code>this</code> instance for convenience
   * @throws HgBadArgumentException if revisions are not valid changeset identifiers
   */
  public HgLogCommand 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

   * @param revisionIndex index of changelog revision
   * @return <code>this</code> for convenience
   * @throws HgBadArgumentException if failed to find supplied changeset revision
   */
  public HgLogCommand changeset(int revisionIndex) throws HgBadArgumentException {
    int ri = new CsetParamKeeper(repo).set(revisionIndex).get();
    return range(ri, ri);
  }
View Full Code Here

TOP

Related Classes of org.tmatesoft.hg.internal.CsetParamKeeper

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.