bookmark([name]) The named bookmark or all bookmarks.
branch(string or set) All changesets belonging to the given branch or the branches of the given changesets.
children(set) Child changesets of changesets in set.
closed() Changeset is closed
contains(pattern) Revision contains a file matching pattern. See hg help patterns for information about file patterns.
date(interval) Changesets within the interval, see hg help dates.
desc(string) Search commit message for string. The match is case-insensitive.
descendants(set) Changesets which are descendants of changesets in set.
file(pattern) Changesets affecting files matched by pattern.
filelog(pattern) Changesets connected to the specified filelog.
first(set, [n]) An alias for limit().
follow([file]) An alias for ::. (ancestors of the working copy's first parent). If a filename is specified, the history of the given file is followed, including copies.
grep(regex) Like keyword(string) but accepts a regex. Use grep(r'…') to ensure special escape characters are handled correctly. Unlike keyword(string), the match is case-sensitive.
head() Changeset is a named branch head.
heads(set) Members of set with no children in set.
id(string) Revision non-ambiguously specified by the given hex string prefix.
keyword(string) Search commit message, user name, and names of changed files for string. The match is case-insensitive.
last(set, [n]) Last n members of set, defaulting to 1.
limit(set, [n]) First n members of set, defaulting to 1.
max(set) Changeset with highest revision number in set.
merge() Changeset is a merge changeset.
min(set) Changeset with lowest revision number in set.
modifies(pattern) Changesets modifying files matched by pattern.
outgoing([path]) Changesets not found in the specified destination repository, or the default push location.
p1([set]) First parent of changesets in set, or the working directory.
p2([set]) Second parent of changesets in set, or the working directory.
parents([set]) The set of all parents for all changesets in set, or the working directory.
present(set) An empty set, if any revision in set isn't found; otherwise, all revisions in set.
removes(pattern) Changesets which remove files matching pattern.
rev(number) Revision with the given numeric identifier.
reverse(set) Reverse order of set.
roots(set) Changesets with no parent changeset in set.
sort(set[, [-]key…]) Sort set by keys. The default sort order is ascending, specify a key as -key to sort in descending order.