Topics

bundlespec Bundle File Formats
color Colorizing Outputs
config Configuration Files
dates Date Formats
deprecated Deprecated Features
diffs Diff Formats
environment Environment Variables
evolution Safely Rewriting History
extensions Using Additional Features
filesets Specifying File Sets
flags Command-line flags
glossary Glossary
hgignore Syntax for Mercurial Ignore Files
hgweb Configuring hgweb
internals Technical implementation topics
merge-tools Merge Tools
pager Pager Support
patterns File Name Patterns
phases Working with Phases
revisions Specifying Revisions
scripting Using Mercurial from scripts and automation
subrepos Subrepositories
templating Template Usage
urls URL Paths

Main Commands

add add the specified files on the next commit
amend combine a changeset with updates and replace it with a new one
annotate show changeset information by line for each file
clone make a copy of an existing repository
commit commit the specified files or all outstanding changes
diff diff repository (or selected files)
evolve solve troubled changesets in your repository
export dump the header and diffs for one or more changesets
fold fold multiple revisions into a single one
forget forget the specified files on the next commit
init create a new repository in the given directory
log show revision history of entire repository or files
merge merge another revision into working directory
next update to next child revision
previous update to parent revision
prune mark changesets as obsolete or succeeded by another changeset
pull pull changes from the specified source
push push changes to the specified destination
remove remove the specified files on the next commit
rewind rewind a stack of changesets to a previous state
serve start stand-alone webserver
split split a changeset into smaller changesets
status show changed files in the working directory
summary summarize working directory state
update update working directory (or switch revisions)

Other Commands

addremove add all new files, delete all missing files
archive create an unversioned archive of a repository revision
backout reverse effect of earlier changeset
bisect subdivision search of changesets
bookmarks create a new bookmark or list existing bookmarks
branch set or show the current branch name
branches list repository named branches
bundle create a bundle file
cat output the current or given revision of files
config show combined config settings from all hgrc files
copy mark files as copied for the next commit
files list tracked files
gdown gdown have been deprecated in favor of previous
graft copy changes from other branches onto the current branch
grep search revision history for a pattern in specified files
gup gup have been deprecated in favor of next
heads show branch heads
help show help for a given topic or a help overview
identify identify the working directory or specified revision
import import an ordered set of patches
incoming show new changesets found in source
manifest output the current or given revision of the project manifest
metaedit edit commit information
obslog show the obsolescence history of the specified revisions
outgoing show changesets not found in the destination
paths show aliases for remote repositories
pdiff show diff combining committed and uncommited changes
phase set or show the current phase name
pick move a commit on the top of working directory parent and updates to it.
pstatus show status combining committed and uncommited changes
recover roll back an interrupted transaction
rename rename files; equivalent of copy + remove
resolve redo merges or set/view the merge status of files
revert restore files to their checkout state
root print the root (top) of the current working directory
share create a new shared repository
stack list all changesets in a topic and other information
tag add one or more tags for the current or given revision
tags list repository tags
topics View current topic, set current topic, change topic for a set of revisions, or see all topics.
touch create successors identical to their predecessors but the changeset ID
unbundle apply one or more bundle files
uncommit move changes from parent revision to working directory
unshare convert a shared repository to a normal one
verify verify the integrity of the repository
verifypushlog Verify the pushlog data looks correct.
version output version and copyright information