RevSpec Class

Summary

Specifies a set of revisions, typically used to extract only a portion of the log, or specifying diff ranges
Assembly
Mercurial.Net.dll
Namespace
Mercurial
Interfaces
  • IEquatable<T>
Base Types
  • object
graph TD Base0["object"]-->Type Interface0["IEquatable<T>"]-.->Type Type["RevSpec"] class Type type-node

Syntax

public sealed class RevSpec : IEquatable<RevSpec>

Constructors

Name Summary
RevSpec(string) Initializes a new instance of the RevSpec class.

Properties

Name Value Summary
All RevSpec
Gets a RevSpec object that selects all the changesets in the repository.
static
AllOrNothing RevSpec
Gets a RevSpec that will include all changesets in this set, only if all changesets specified are present, otherwise it will be an empty set.
Ancestors RevSpec
Gets a RevSpec that selects all changesets that are ancestors of a changeset in this set.
Bookmarks RevSpec
Gets a new RevSpec that includes all changesets identified by bookmarks.
static
Branches RevSpec
Gets a RevSpec object that selects all changesets that belongs to branches found in this RevSpec.
Children RevSpec
Gets a RevSpec object that selects all changesets that are child changesets of changesets in this RevSpec.
Closed RevSpec
Gets a RevSpec object that selects all changesets that close a branch.
static
Descendants RevSpec
Gets a RevSpec that selects all changesets that are descendants of a changeset in this set.
Heads RevSpec
Gets a RevSpec that selects all changesets that is a named branch head.
static
LeftParent RevSpec
Gets a RevSpec that selects all the left parents of changesets in this set.
Max RevSpec
Gets a new RevSpec that selects the changeset with the highest revision number of this set.
Merges RevSpec
Gets a RevSpec that selects all changesets that are merges.
static
Min RevSpec
Gets a new RevSpec that selects the changeset with the lowest revision number of this set.
Not RevSpec
Gets a RevSpec object that selects all changesets that are not part of the current RevSpec.
Null RevSpec
Gets a RevSpec object that select the null revision, the revision that is the initial, empty repository, revision, the parent of revision 0.
static
Parents RevSpec
Gets a RevSpec object that selects all changesets that is a parent changesets of changesets in this RevSpec.
RightParent RevSpec
Gets a RevSpec that selects all the right parents of changesets in this set.
Roots RevSpec
Gets a RevSpec object that selects all changesets that has no parents in the set.
WorkingDirectoryParent RevSpec
Gets a RevSpec object that select the parent revision of the working directory. If an uncommitted merge is in progress, pick the first parent.
static

Methods

Name Value Summary
Adds(string) RevSpec
Returns a RevSpec that will include all changesets that add a file with a name that matches the specified pattern.
static
Affects(string) RevSpec
Returns a RevSpec that will include all changesets that affects a file with a name that matches the specified pattern.
static
AncestorsOf(RevSpec) RevSpec
Create a RevSpec that includes the revision specified and all ancestor revisions.
static
And(RevSpec) RevSpec
Selects all changesets that are both in this RevSpec and also in revSpec.
Author(string) RevSpec
Selects all changesets committed by the specified name.
static
Bookmark(string) RevSpec
Creates a new RevSpec that will include the changeset idenfitied by the specified bookmark name.
static
Bracketed(RevSpec, RevSpec) RevSpec
Create a RevSpec that includes the revisions specified, and all revisions that are both descendants of from and ancestors of to
static
ByBranch(string) RevSpec
Select a revision based on its branch name, will select the tipmost revision that belongs to the named branch.
static
ById(string) RevSpec
Select a revision based on identifying hash prefix.
static
ByRevisionNumber(int) RevSpec
Select a revision based on its revision number.
static
ByTag(string) RevSpec
Select a revision based on tag.
static
ByUser(string) RevSpec
Select all changesets committed by the specified user.
static
CommonAncestorOf(RevSpec, RevSpec) RevSpec
Create a RevSpec that includes the changeset that is the common ancestor of the two single changeset specifications.
static
Contains(string) RevSpec
Returns a RevSpec that will include all changesets that contains a file with a name that matches the specified pattern.
static
DescendantsOf(RevSpec) RevSpec
Create a RevSpec that includes the revision specified and all descendant revisions.
static
Equals(object) bool
Determines whether the specified object is equal to the current object.
Equals(RevSpec) bool
Indicates whether the current object is equal to another object of the same type.
Except(RevSpec) RevSpec
Select all changesets in this RevSpec specification, but not in revSpec.
From(RevSpec) RevSpec
Create a RevSpec that includes a range of revisions, starting with the specified RevSpec and runs all the way up to and including the tip.
static
GetHashCode() int
Serves as a hash function for a particular type.
GreatestCommonAncestorOf(RevSpec, RevSpec) RevSpec
Create a RevSpec that includes the greatest common ancestor of the two changesets.
static
Grep(string) RevSpec
Returns a RevSpec that will include all changesets that has a commit message, author name or names of changed files that matches the regular expression pattern.
static
InBranch(string) RevSpec
Select all changesets in the specified branch.
static
Keyword(string) RevSpec
Returns a RevSpec that will include all changesets that has a commit message, author name or names of changed files that matches the pattern.
static
Limit(int) RevSpec
Returns a RevSpec that selects the first "n" changesets of the set.
Modifies(string) RevSpec
Returns a RevSpec that will include all changesets that modifies a file with a name that matches the specified pattern.
static
Or(RevSpec) RevSpec
Selects all changesets that either in this RevSpec or in revSpec.
Outgoing(string) RevSpec
Returns a RevSpec that selects all changesets not found in the specified destination repository, or if no path is specified, not found in the default push location.
static
Range(RevSpec, RevSpec) RevSpec
Create a RevSpec that includes a range of revisions, by simply selecting all changesets that has a revision number in the specified range.
static
Single(int) RevSpec
Select a revision based on its locally unique revision number.
static
Single(string) RevSpec
Select a revision based on its globally unique hash.
static
Tagged() RevSpec
Returns a RevSpec that selects all tagged changesets.
static
Tagged(string) RevSpec
Returns a RevSpec that selects the changeset with the specified tag.
static
To(RevSpec) RevSpec
Create a RevSpec that includes a range of revisions, starting with the first revision in the repository, and ending with the specified RevSpec. the tip.
static
ToString() string
Returns a string that represents this instance.

Operators

Name Value Summary
implicit operator RevSpec(int) RevSpec
implicit operator RevSpec(string) RevSpec
implicit operator string(RevSpec) string
operator !(RevSpec) RevSpec
operator &(RevSpec, RevSpec) RevSpec
operator |(RevSpec, RevSpec) RevSpec
operator false(RevSpec) bool
operator true(RevSpec) bool