Topics

configConfiguration Files
datesDate Formats
patternsFile Name Patterns
environmentEnvironment Variables
revisionsSpecifying Single Revisions
multirevsSpecifying Multiple Revisions
revsetsSpecifying Revision Sets
diffsDiff Formats
merge-toolsMerge Tools
templatingTemplate Usage
urlsURL Paths
extensionsUsing additional features
subreposSubrepositories
hgwebConfiguring hgweb
glossaryGlossary

Main Commands

addadd the specified files on the next commit
annotateshow changeset information by line for each file
clonemake a copy of an existing repository
commitcommit the specified files or all outstanding changes
diffdiff repository (or selected files)
exportdump the header and diffs for one or more changesets
forgetforget the specified files on the next commit
initcreate a new repository in the given directory
logshow revision history of entire repository or files
mergemerge working directory with another revision
pullpull changes from the specified source
pushpush changes to the specified destination
qdiffdiff of the current patch and subsequent modifications
qnewcreate a new patch
qpoppop the current patch off the stack
qpushpush the next patch onto the stack
qrefreshupdate the current patch
removeremove the specified files on the next commit
servestart stand-alone webserver
statusshow changed files in the working directory
summarysummarize working directory state
updateupdate working directory (or switch revisions)

Other Commands

addremoveadd all new files, delete all missing files
archivecreate an unversioned archive of a repository revision
backoutreverse effect of earlier changeset
bisectsubdivision search of changesets
bookmarkstrack a line of development with movable markers
branchset or show the current branch name
brancheslist repository named branches
bugmanage a bug instance or create a new one
bugsmanage global bugtracking metadata
bundlecreate a changegroup file
catoutput the current or given revision of files
churnhistogram of changes to the repository
compassShow where you are, where you could be and where you go on commit.
convertconvert a foreign SCM repository to a Mercurial one.
copymark files as copied for the next commit
emailsend changesets by email
extdiffuse external program to diff repository (or selected files)
fetchpull changes from a remote repository, merge new changes if needed.
glogshow revision history alongside an ASCII revision graph
grepsearch for a pattern in specified files and revisions
headsshow current repository heads or show branch heads
helpshow help for a given topic or a help overview
identifyidentify the working copy or specified revision
importimport an ordered set of patches
incomingshow new changesets found in source
kwdemoprint [keywordmaps] configuration and an expansion example
kwexpandexpand keywords in the working directory
kwfilesshow files configured for keyword expansion
kwshrinkrevert expanded keywords in the working directory
locatelocate files matching specific patterns
manifestoutput the current or given revision of the project manifest
outgoingshow changesets not found in the destination
parentsshow the parents of the working directory or revision
pathsshow aliases for remote repositories
purgeremoves files not tracked by Mercurial
qappliedprint the patches already applied
qcloneclone main and patch repository at same time
qdeleteremove patches from queue
qfinishmove applied patches into repository history
qfoldfold the named patches into the current patch
qgotopush or pop patches until named patch is at top of stack
qguardset or print guards for a patch
qheaderprint the header of the topmost or specified patch
qimportimport a patch
qnextprint the name of the next patch
qprevprint the name of the previous patch
qqueuemanage multiple patch queues
qrecordinteractively record a new patch
qrenamerename a patch
qselectset or print guarded patches to push
qseriesprint the entire series file
qtopprint the name of the current patch
qunappliedprint the patches not yet applied
recordinteractively select changes to commit
recoverroll back an interrupted transaction
renamerename files; equivalent of copy + remove
resolveredo merges or set/view the merge status of files
revertrestore individual files or directories to an earlier state
rollbackroll back the last transaction (dangerous)
rootprint the root (top) of the current working directory
showconfigshow combined config settings from all hgrc files
sigcheckverify all the signatures there may be for a particular revision
signadd a signature for the current or given revision
sigslist signed changesets
slogshow revision history of entire repository or files
stripstrip changesets and all their descendants from the repository
tagadd one or more tags for the current or given revision
tagslist repository tags
tipshow the tip revision
unbundleapply one or more changegroup files
verifyverify the integrity of the repository
versionoutput version and copyright information
vimdiffuse 'vim' to diff repository (or selected files)