HG commands
This page describes current command set of Mercurial.
For a discussion on improvements see /discussion.
Command |
Meaning |
add |
add the specified files on the next commit |
addremove |
add all new files, delete all missing files |
annotate |
show changeset information per file line |
archive |
create unversioned archive of a repository revision |
reverse effect of earlier changeset |
|
branch |
set or show the current branch name |
branches |
list repository named branches |
create a changegroup file |
|
cat |
output the current or given revision of files |
make a copy of an existing repository |
|
commit the specified files or all outstanding changes |
|
copy |
mark files as copied for the next commit |
diff |
diff repository (or selected files) |
dump the header and diffs for one or more changesets |
|
grep |
search for a pattern in specified files and revisions |
show current repository heads or show branch heads |
|
help |
show help for a command, extension, or list of commands |
identify |
identify the working copy or specified revision |
import an ordered set of patches |
|
incoming |
show new changesets found in source |
init |
create a new repository in the given directory |
locate |
locate files matching specific patterns |
log |
show revision history of entire repository or files |
output the current or given revision of the project manifest |
|
merge working directory with another revision |
|
outgoing |
show changesets not found in destination |
show the parents of the working dir or revision |
|
paths |
show definition of symbolic path names |
pull changes from the specified source |
|
push changes to the specified destination |
|
recover |
roll back an interrupted transaction |
remove |
remove the specified files on the next commit |
rename |
rename files; equivalent of copy + remove |
revert files or dirs to their states as of some revision |
|
roll back the last transaction in this repository |
|
root |
print the root (top) of the current working dir |
export the repository via HTTP |
|
showconfig |
show combined config settings from all hgrc files |
status |
show changed files in the working directory |
add a tag for the current or given revision |
|
tags |
list repository tags |
show the tip revision |
|
unbundle |
apply one or more changegroup files |
update working directory |
|
verify |
verify the integrity of the repository |
version |
output version and copyright information |
