2005-08-06 18:43:12 +04:00
|
|
|
Mercurial Distributed SCM
|
|
|
|
|
2007-04-07 11:27:55 +04:00
|
|
|
basic commands:
|
2005-08-06 18:43:12 +04:00
|
|
|
|
|
|
|
add add the specified files on the next commit
|
|
|
|
annotate show changeset information per file line
|
|
|
|
clone make a copy of an existing repository
|
|
|
|
commit commit the specified files or all outstanding changes
|
2005-12-01 19:51:45 +03:00
|
|
|
diff diff repository (or selected files)
|
2005-08-06 18:43:12 +04:00
|
|
|
export dump the header and diffs for one or more changesets
|
2005-08-15 09:36:08 +04:00
|
|
|
init create a new repository in the given directory
|
2005-08-25 00:26:45 +04:00
|
|
|
log show revision history of entire repository or files
|
2006-12-29 08:37:43 +03:00
|
|
|
merge merge working directory with another revision
|
2009-04-08 00:47:56 +04:00
|
|
|
parents show the parents of the working directory or revision
|
2005-08-06 18:43:12 +04:00
|
|
|
pull pull changes from the specified source
|
|
|
|
push push changes to the specified destination
|
|
|
|
remove remove the specified files on the next commit
|
|
|
|
serve export the repository via HTTP
|
|
|
|
status show changed files in the working directory
|
2006-12-29 08:37:43 +03:00
|
|
|
update update working directory
|
2007-04-07 11:27:55 +04:00
|
|
|
|
|
|
|
use "hg help" for the full list of commands or "hg -v" for details
|
2005-08-06 18:43:12 +04:00
|
|
|
add add the specified files on the next commit
|
|
|
|
annotate show changeset information per file line
|
|
|
|
clone make a copy of an existing repository
|
|
|
|
commit commit the specified files or all outstanding changes
|
2005-12-01 19:51:45 +03:00
|
|
|
diff diff repository (or selected files)
|
2005-08-06 18:43:12 +04:00
|
|
|
export dump the header and diffs for one or more changesets
|
2005-08-15 09:36:08 +04:00
|
|
|
init create a new repository in the given directory
|
2005-08-25 00:26:45 +04:00
|
|
|
log show revision history of entire repository or files
|
2006-12-29 08:37:43 +03:00
|
|
|
merge merge working directory with another revision
|
2009-04-08 00:47:56 +04:00
|
|
|
parents show the parents of the working directory or revision
|
2005-08-06 18:43:12 +04:00
|
|
|
pull pull changes from the specified source
|
|
|
|
push push changes to the specified destination
|
|
|
|
remove remove the specified files on the next commit
|
|
|
|
serve export the repository via HTTP
|
|
|
|
status show changed files in the working directory
|
2006-12-29 08:37:43 +03:00
|
|
|
update update working directory
|
2005-08-06 18:43:12 +04:00
|
|
|
Mercurial Distributed SCM
|
|
|
|
|
2007-04-07 11:27:55 +04:00
|
|
|
list of commands:
|
2005-08-06 18:43:12 +04:00
|
|
|
|
2006-10-05 17:51:54 +04:00
|
|
|
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
|
|
|
|
backout reverse effect of earlier changeset
|
2008-01-01 03:20:34 +03:00
|
|
|
bisect subdivision search of changesets
|
2006-10-25 01:49:36 +04:00
|
|
|
branch set or show the current branch name
|
|
|
|
branches list repository named branches
|
2006-10-05 17:51:54 +04:00
|
|
|
bundle create a changegroup file
|
2006-12-17 00:33:39 +03:00
|
|
|
cat output the current or given revision of files
|
2006-10-05 17:51:54 +04:00
|
|
|
clone make a copy of an existing repository
|
|
|
|
commit commit the specified files or all outstanding changes
|
|
|
|
copy mark files as copied for the next commit
|
|
|
|
diff diff repository (or selected files)
|
|
|
|
export dump the header and diffs for one or more changesets
|
|
|
|
grep search for a pattern in specified files and revisions
|
2007-06-21 07:34:14 +04:00
|
|
|
heads show current repository heads or show branch heads
|
2008-10-22 23:30:34 +04:00
|
|
|
help show help for a given topic or a help overview
|
2007-06-21 20:54:11 +04:00
|
|
|
identify identify the working copy or specified revision
|
2006-10-05 17:51:54 +04:00
|
|
|
import 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
|
2006-12-17 00:33:39 +03:00
|
|
|
manifest output the current or given revision of the project manifest
|
2006-12-29 08:37:43 +03:00
|
|
|
merge merge working directory with another revision
|
2006-10-05 17:51:54 +04:00
|
|
|
outgoing show changesets not found in destination
|
2009-04-08 00:47:56 +04:00
|
|
|
parents show the parents of the working directory or revision
|
2009-01-25 21:07:41 +03:00
|
|
|
paths show aliases for remote repositories
|
2006-10-05 17:51:54 +04:00
|
|
|
pull pull changes from the specified source
|
|
|
|
push 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
|
2008-12-20 05:58:33 +03:00
|
|
|
resolve retry file merges from a merge or update
|
2009-04-08 00:47:56 +04:00
|
|
|
revert restore individual files or directories to an earlier state
|
2007-12-03 00:52:36 +03:00
|
|
|
rollback roll back the last transaction
|
2009-04-08 00:47:56 +04:00
|
|
|
root print the root (top) of the current working directory
|
2006-10-05 17:51:54 +04:00
|
|
|
serve export the repository via HTTP
|
|
|
|
showconfig show combined config settings from all hgrc files
|
|
|
|
status show changed files in the working directory
|
2008-03-15 01:38:56 +03:00
|
|
|
tag add one or more tags for the current or given revision
|
2006-10-05 17:51:54 +04:00
|
|
|
tags list repository tags
|
|
|
|
tip show the tip revision
|
2007-06-24 19:08:38 +04:00
|
|
|
unbundle apply one or more changegroup files
|
2006-12-29 08:37:43 +03:00
|
|
|
update update working directory
|
2006-10-05 17:51:54 +04:00
|
|
|
verify verify the integrity of the repository
|
|
|
|
version output version and copyright information
|
2007-04-07 11:27:55 +04:00
|
|
|
|
2008-10-22 23:30:34 +04:00
|
|
|
additional help topics:
|
2008-10-21 13:29:27 +04:00
|
|
|
|
|
|
|
dates Date Formats
|
|
|
|
patterns File Name Patterns
|
|
|
|
environment Environment Variables
|
|
|
|
revisions Specifying Single Revisions
|
|
|
|
multirevs Specifying Multiple Revisions
|
2008-11-19 00:35:34 +03:00
|
|
|
diffs Diff Formats
|
2009-01-22 16:32:39 +03:00
|
|
|
templating Template Usage
|
2009-04-04 19:44:18 +04:00
|
|
|
urls URL Paths
|
2008-10-21 13:29:27 +04:00
|
|
|
|
2007-04-07 11:27:55 +04:00
|
|
|
use "hg -v help" to show aliases and global options
|
2006-10-05 17:51:54 +04:00
|
|
|
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
|
|
|
|
backout reverse effect of earlier changeset
|
2008-01-01 03:20:34 +03:00
|
|
|
bisect subdivision search of changesets
|
2006-10-25 01:49:36 +04:00
|
|
|
branch set or show the current branch name
|
|
|
|
branches list repository named branches
|
2006-10-05 17:51:54 +04:00
|
|
|
bundle create a changegroup file
|
2006-12-17 00:33:39 +03:00
|
|
|
cat output the current or given revision of files
|
2006-10-05 17:51:54 +04:00
|
|
|
clone make a copy of an existing repository
|
|
|
|
commit commit the specified files or all outstanding changes
|
|
|
|
copy mark files as copied for the next commit
|
|
|
|
diff diff repository (or selected files)
|
|
|
|
export dump the header and diffs for one or more changesets
|
|
|
|
grep search for a pattern in specified files and revisions
|
2007-06-21 07:34:14 +04:00
|
|
|
heads show current repository heads or show branch heads
|
2008-10-22 23:30:34 +04:00
|
|
|
help show help for a given topic or a help overview
|
2007-06-21 20:54:11 +04:00
|
|
|
identify identify the working copy or specified revision
|
2006-10-05 17:51:54 +04:00
|
|
|
import 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
|
2006-12-17 00:33:39 +03:00
|
|
|
manifest output the current or given revision of the project manifest
|
2006-12-29 08:37:43 +03:00
|
|
|
merge merge working directory with another revision
|
2006-10-05 17:51:54 +04:00
|
|
|
outgoing show changesets not found in destination
|
2009-04-08 00:47:56 +04:00
|
|
|
parents show the parents of the working directory or revision
|
2009-01-25 21:07:41 +03:00
|
|
|
paths show aliases for remote repositories
|
2006-10-05 17:51:54 +04:00
|
|
|
pull pull changes from the specified source
|
|
|
|
push 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
|
2008-12-20 05:58:33 +03:00
|
|
|
resolve retry file merges from a merge or update
|
2009-04-08 00:47:56 +04:00
|
|
|
revert restore individual files or directories to an earlier state
|
2007-12-03 00:52:36 +03:00
|
|
|
rollback roll back the last transaction
|
2009-04-08 00:47:56 +04:00
|
|
|
root print the root (top) of the current working directory
|
2006-10-05 17:51:54 +04:00
|
|
|
serve export the repository via HTTP
|
|
|
|
showconfig show combined config settings from all hgrc files
|
|
|
|
status show changed files in the working directory
|
2008-03-15 01:38:56 +03:00
|
|
|
tag add one or more tags for the current or given revision
|
2006-10-05 17:51:54 +04:00
|
|
|
tags list repository tags
|
|
|
|
tip show the tip revision
|
2007-06-24 19:08:38 +04:00
|
|
|
unbundle apply one or more changegroup files
|
2006-12-29 08:37:43 +03:00
|
|
|
update update working directory
|
2006-10-05 17:51:54 +04:00
|
|
|
verify verify the integrity of the repository
|
|
|
|
version output version and copyright information
|
2008-10-21 13:29:27 +04:00
|
|
|
|
2008-10-22 23:30:34 +04:00
|
|
|
additional help topics:
|
2008-10-21 13:29:27 +04:00
|
|
|
|
|
|
|
dates Date Formats
|
|
|
|
patterns File Name Patterns
|
|
|
|
environment Environment Variables
|
|
|
|
revisions Specifying Single Revisions
|
|
|
|
multirevs Specifying Multiple Revisions
|
2008-11-19 00:35:34 +03:00
|
|
|
diffs Diff Formats
|
2009-01-22 16:32:39 +03:00
|
|
|
templating Template Usage
|
2009-04-04 19:44:18 +04:00
|
|
|
urls URL Paths
|
2005-08-16 22:44:04 +04:00
|
|
|
hg add [OPTION]... [FILE]...
|
2005-07-20 15:43:05 +04:00
|
|
|
|
2005-08-06 18:43:12 +04:00
|
|
|
add the specified files on the next commit
|
|
|
|
|
2009-04-05 01:21:23 +04:00
|
|
|
Schedule files to be version controlled and added to the
|
|
|
|
repository.
|
2005-10-25 02:52:28 +04:00
|
|
|
|
2006-12-08 23:55:45 +03:00
|
|
|
The files will be added to the repository at the next commit. To
|
|
|
|
undo an add before that, see hg revert.
|
2005-10-25 02:52:28 +04:00
|
|
|
|
2009-02-28 14:38:45 +03:00
|
|
|
If no names are given, add all files to the repository.
|
2005-10-25 02:52:28 +04:00
|
|
|
|
2005-08-06 18:43:12 +04:00
|
|
|
options:
|
|
|
|
|
2005-10-25 02:52:28 +04:00
|
|
|
-I --include include names matching the given patterns
|
|
|
|
-X --exclude exclude names matching the given patterns
|
2006-06-09 20:14:52 +04:00
|
|
|
-n --dry-run do not perform actions, just print output
|
2007-04-07 11:27:55 +04:00
|
|
|
|
|
|
|
use "hg -v help add" to show global options
|
2005-07-03 23:47:45 +04:00
|
|
|
hg add: option --skjdfks not recognized
|
2005-08-16 22:44:04 +04:00
|
|
|
hg add [OPTION]... [FILE]...
|
2005-07-20 15:43:05 +04:00
|
|
|
|
2005-08-06 18:43:12 +04:00
|
|
|
add the specified files on the next commit
|
|
|
|
|
2009-04-05 01:21:23 +04:00
|
|
|
Schedule files to be version controlled and added to the
|
|
|
|
repository.
|
2005-10-25 02:52:28 +04:00
|
|
|
|
2006-12-08 23:55:45 +03:00
|
|
|
The files will be added to the repository at the next commit. To
|
|
|
|
undo an add before that, see hg revert.
|
2005-10-25 02:52:28 +04:00
|
|
|
|
2009-02-28 14:38:45 +03:00
|
|
|
If no names are given, add all files to the repository.
|
2005-10-25 02:52:28 +04:00
|
|
|
|
2005-08-06 18:43:12 +04:00
|
|
|
options:
|
|
|
|
|
2005-10-25 02:52:28 +04:00
|
|
|
-I --include include names matching the given patterns
|
|
|
|
-X --exclude exclude names matching the given patterns
|
2006-06-09 20:14:52 +04:00
|
|
|
-n --dry-run do not perform actions, just print output
|
2007-04-07 11:27:55 +04:00
|
|
|
|
|
|
|
use "hg -v help add" to show global options
|
2006-12-14 21:30:18 +03:00
|
|
|
hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...
|
2005-06-15 01:28:42 +04:00
|
|
|
|
2005-12-01 19:51:45 +03:00
|
|
|
diff repository (or selected files)
|
2005-08-06 18:43:12 +04:00
|
|
|
|
2005-10-25 02:52:28 +04:00
|
|
|
Show differences between revisions for the specified files.
|
|
|
|
|
|
|
|
Differences between files are shown using the unified diff format.
|
|
|
|
|
2006-12-08 23:55:45 +03:00
|
|
|
NOTE: diff may generate unexpected results for merges, as it will
|
|
|
|
default to comparing against the working directory's first parent
|
|
|
|
changeset if no revisions are specified.
|
|
|
|
|
2005-10-25 02:52:28 +04:00
|
|
|
When two revision arguments are given, then changes are shown
|
|
|
|
between those revisions. If only one revision is specified then
|
|
|
|
that revision is compared to the working directory, and, when no
|
|
|
|
revisions are specified, the working directory files are compared
|
|
|
|
to its parent.
|
|
|
|
|
2009-04-08 23:20:31 +04:00
|
|
|
Without the -a/--text option, diff will avoid generating diffs of
|
|
|
|
files it detects as binary. With -a, diff will generate a diff
|
|
|
|
anyway, probably with undesirable results.
|
2005-10-25 02:52:28 +04:00
|
|
|
|
2009-04-08 23:20:31 +04:00
|
|
|
Use the -g/--git option to generate diffs in the git extended diff
|
2009-04-04 02:27:55 +04:00
|
|
|
format. For more information, read 'hg help diffs'.
|
2008-11-03 18:31:47 +03:00
|
|
|
|
2005-08-06 18:43:12 +04:00
|
|
|
options:
|
|
|
|
|
2006-06-29 17:16:25 +04:00
|
|
|
-r --rev revision
|
2009-01-13 12:44:16 +03:00
|
|
|
-c --change change made by revision
|
2006-06-29 17:16:25 +04:00
|
|
|
-a --text treat all files as text
|
2006-08-15 09:48:03 +04:00
|
|
|
-g --git use git extended diff format
|
2006-09-29 00:00:01 +04:00
|
|
|
--nodates don't include dates in diff headers
|
2008-06-12 16:38:15 +04:00
|
|
|
-p --show-function show which function each change is in
|
2006-06-29 17:16:25 +04:00
|
|
|
-w --ignore-all-space ignore white space when comparing lines
|
|
|
|
-b --ignore-space-change ignore changes in the amount of white space
|
|
|
|
-B --ignore-blank-lines ignore changes whose lines are all blank
|
2008-04-05 00:15:14 +04:00
|
|
|
-U --unified number of lines of context to show
|
2006-06-29 17:16:25 +04:00
|
|
|
-I --include include names matching the given patterns
|
|
|
|
-X --exclude exclude names matching the given patterns
|
2007-04-07 11:27:55 +04:00
|
|
|
|
|
|
|
use "hg -v help diff" to show global options
|
2005-08-16 22:44:04 +04:00
|
|
|
hg status [OPTION]... [FILE]...
|
2005-06-15 01:28:42 +04:00
|
|
|
|
2008-01-02 22:22:10 +03:00
|
|
|
aliases: st
|
|
|
|
|
2005-08-06 18:43:12 +04:00
|
|
|
show changed files in the working directory
|
|
|
|
|
2008-04-02 16:03:16 +04:00
|
|
|
Show status of files in the repository. If names are given, only
|
|
|
|
files that match are shown. Files that are clean or ignored or
|
2009-04-08 23:20:31 +04:00
|
|
|
source of a copy/move operation, are not listed unless -c/--clean,
|
|
|
|
-i/--ignored, -C/--copies or -A/--all is given. Unless options
|
|
|
|
described with "show only ..." are given, the options -mardu are
|
|
|
|
used.
|
2005-10-25 02:52:28 +04:00
|
|
|
|
2008-03-02 15:52:34 +03:00
|
|
|
Option -q/--quiet hides untracked (unknown and ignored) files
|
2009-04-05 12:12:43 +04:00
|
|
|
unless explicitly requested with -u/--unknown or -i/--ignored.
|
2008-03-02 00:30:03 +03:00
|
|
|
|
2006-12-08 23:55:45 +03:00
|
|
|
NOTE: status may appear to disagree with diff if permissions have
|
|
|
|
changed or a merge has occurred. The standard diff format does not
|
|
|
|
report permission changes and diff only reports changes relative
|
|
|
|
to one merge parent.
|
|
|
|
|
2006-10-19 01:44:23 +04:00
|
|
|
If one revision is given, it is used as the base revision.
|
|
|
|
If two revisions are given, the difference between them is shown.
|
|
|
|
|
2005-10-25 02:52:28 +04:00
|
|
|
The codes used to show the status of files are:
|
2005-08-06 18:43:12 +04:00
|
|
|
M = modified
|
|
|
|
A = added
|
|
|
|
R = removed
|
2006-07-21 03:21:07 +04:00
|
|
|
C = clean
|
2009-04-07 19:32:40 +04:00
|
|
|
! = missing, but still tracked
|
2005-08-06 18:43:12 +04:00
|
|
|
? = not tracked
|
2008-02-02 16:49:31 +03:00
|
|
|
I = ignored
|
2006-07-19 18:56:40 +04:00
|
|
|
= the previous added file was copied from here
|
2005-08-06 18:43:12 +04:00
|
|
|
|
|
|
|
options:
|
|
|
|
|
2006-07-21 03:21:07 +04:00
|
|
|
-A --all show status of all files
|
2005-08-28 01:35:30 +04:00
|
|
|
-m --modified show only modified files
|
|
|
|
-a --added show only added files
|
|
|
|
-r --removed show only removed files
|
2006-01-12 23:02:38 +03:00
|
|
|
-d --deleted show only deleted (but tracked) files
|
2006-07-21 03:21:07 +04:00
|
|
|
-c --clean show only files without changes
|
2005-08-28 01:35:30 +04:00
|
|
|
-u --unknown show only unknown (not tracked) files
|
2007-03-06 14:52:07 +03:00
|
|
|
-i --ignored show only ignored files
|
2005-08-28 01:35:30 +04:00
|
|
|
-n --no-status hide status prefix
|
2006-07-19 18:56:40 +04:00
|
|
|
-C --copies show source of copied files
|
2005-10-25 02:52:28 +04:00
|
|
|
-0 --print0 end filenames with NUL, for use with xargs
|
2006-10-19 01:44:23 +04:00
|
|
|
--rev show difference from revision
|
2005-10-25 02:52:28 +04:00
|
|
|
-I --include include names matching the given patterns
|
|
|
|
-X --exclude exclude names matching the given patterns
|
2007-04-07 11:27:55 +04:00
|
|
|
|
|
|
|
use "hg -v help status" to show global options
|
2005-08-16 22:44:04 +04:00
|
|
|
hg status [OPTION]... [FILE]...
|
2005-08-06 18:43:12 +04:00
|
|
|
|
|
|
|
show changed files in the working directory
|
2005-08-06 17:04:59 +04:00
|
|
|
hg: unknown command 'foo'
|
2005-08-06 18:43:12 +04:00
|
|
|
Mercurial Distributed SCM
|
|
|
|
|
2007-04-07 11:27:55 +04:00
|
|
|
basic commands:
|
2005-08-06 17:04:59 +04:00
|
|
|
|
|
|
|
add add the specified files on the next commit
|
|
|
|
annotate show changeset information per file line
|
|
|
|
clone make a copy of an existing repository
|
|
|
|
commit commit the specified files or all outstanding changes
|
2005-12-01 19:51:45 +03:00
|
|
|
diff diff repository (or selected files)
|
2005-08-06 17:04:59 +04:00
|
|
|
export dump the header and diffs for one or more changesets
|
2005-08-15 09:36:08 +04:00
|
|
|
init create a new repository in the given directory
|
2005-08-25 00:26:45 +04:00
|
|
|
log show revision history of entire repository or files
|
2006-12-29 08:37:43 +03:00
|
|
|
merge merge working directory with another revision
|
2009-04-08 00:47:56 +04:00
|
|
|
parents show the parents of the working directory or revision
|
2005-08-06 17:04:59 +04:00
|
|
|
pull pull changes from the specified source
|
|
|
|
push push changes to the specified destination
|
|
|
|
remove remove the specified files on the next commit
|
|
|
|
serve export the repository via HTTP
|
|
|
|
status show changed files in the working directory
|
2006-12-29 08:37:43 +03:00
|
|
|
update update working directory
|
2007-04-07 11:27:55 +04:00
|
|
|
|
|
|
|
use "hg help" for the full list of commands or "hg -v" for details
|
2005-08-06 18:43:12 +04:00
|
|
|
hg: unknown command 'skjdfks'
|
|
|
|
Mercurial Distributed SCM
|
|
|
|
|
2007-04-07 11:27:55 +04:00
|
|
|
basic commands:
|
2005-08-06 17:04:59 +04:00
|
|
|
|
|
|
|
add add the specified files on the next commit
|
|
|
|
annotate show changeset information per file line
|
|
|
|
clone make a copy of an existing repository
|
|
|
|
commit commit the specified files or all outstanding changes
|
2005-12-01 19:51:45 +03:00
|
|
|
diff diff repository (or selected files)
|
2005-08-06 17:04:59 +04:00
|
|
|
export dump the header and diffs for one or more changesets
|
2005-08-15 09:36:08 +04:00
|
|
|
init create a new repository in the given directory
|
2005-08-25 00:26:45 +04:00
|
|
|
log show revision history of entire repository or files
|
2006-12-29 08:37:43 +03:00
|
|
|
merge merge working directory with another revision
|
2009-04-08 00:47:56 +04:00
|
|
|
parents show the parents of the working directory or revision
|
2005-08-06 17:04:59 +04:00
|
|
|
pull pull changes from the specified source
|
|
|
|
push push changes to the specified destination
|
|
|
|
remove remove the specified files on the next commit
|
|
|
|
serve export the repository via HTTP
|
|
|
|
status show changed files in the working directory
|
2006-12-29 08:37:43 +03:00
|
|
|
update update working directory
|
2007-04-07 11:27:55 +04:00
|
|
|
|
|
|
|
use "hg help" for the full list of commands or "hg -v" for details
|