Mercurial > hg
annotate tests/test-help.t @ 15732:2e98875e3fa4
i18n-ru: translated inotify, interhg; skipped strings added
author | Alexander Sauta <demosito@gmail.com> |
---|---|
date | Mon, 19 Dec 2011 22:40:59 +0300 |
parents | 2d710c12ffc0 |
children | 8ed112ed774a |
rev | line source |
---|---|
12328
b63f6422d2a7
tests: fix a bunch of pointless #s in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12316
diff
changeset
|
1 Short help: |
331 | 2 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
3 $ hg |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
4 Mercurial Distributed SCM |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
5 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
6 basic commands: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
7 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
8 add add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
9 annotate show changeset information by line for each file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
10 clone make a copy of an existing repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
11 commit commit the specified files or all outstanding changes |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
12 diff diff repository (or selected files) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
13 export dump the header and diffs for one or more changesets |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
14 forget forget the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
15 init create a new repository in the given directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
16 log show revision history of entire repository or files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
17 merge merge working directory with another revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
18 pull pull changes from the specified source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
19 push push changes to the specified destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
20 remove remove the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
21 serve start stand-alone webserver |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
22 status show changed files in the working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
23 summary summarize working directory state |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
24 update update working directory (or switch revisions) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
25 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
26 use "hg help" for the full list of commands or "hg -v" for details |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
27 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
28 $ hg -q |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
29 add add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
30 annotate show changeset information by line for each file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
31 clone make a copy of an existing repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
32 commit commit the specified files or all outstanding changes |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
33 diff diff repository (or selected files) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
34 export dump the header and diffs for one or more changesets |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
35 forget forget the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
36 init create a new repository in the given directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
37 log show revision history of entire repository or files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
38 merge merge working directory with another revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
39 pull pull changes from the specified source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
40 push push changes to the specified destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
41 remove remove the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
42 serve start stand-alone webserver |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
43 status show changed files in the working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
44 summary summarize working directory state |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
45 update update working directory (or switch revisions) |
10110
9ed13f718e53
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
896
diff
changeset
|
46 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
47 $ hg help |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
48 Mercurial Distributed SCM |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
49 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
50 list of commands: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
51 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
52 add add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
53 addremove add all new files, delete all missing files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
54 annotate show changeset information by line for each file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
55 archive create an unversioned archive of a repository revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
56 backout reverse effect of earlier changeset |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
57 bisect subdivision search of changesets |
13368
d4ab9486e514
bookmarks: move push/pull command features to core
Matt Mackall <mpm@selenic.com>
parents:
13230
diff
changeset
|
58 bookmarks track a line of development with movable markers |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
59 branch set or show the current branch name |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
60 branches list repository named branches |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
61 bundle create a changegroup file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
62 cat output the current or given revision of files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
63 clone make a copy of an existing repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
64 commit commit the specified files or all outstanding changes |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
65 copy mark files as copied for the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
66 diff diff repository (or selected files) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
67 export dump the header and diffs for one or more changesets |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
68 forget forget the specified files on the next commit |
15238
2d710c12ffc0
graft: add initial implementation
Matt Mackall <mpm@selenic.com>
parents:
15202
diff
changeset
|
69 graft copy changes from other branches onto the current branch |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
70 grep search for a pattern in specified files and revisions |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
71 heads show current repository heads or show branch heads |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
72 help show help for a given topic or a help overview |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
73 identify identify the working copy or specified revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
74 import import an ordered set of patches |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
75 incoming show new changesets found in source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
76 init create a new repository in the given directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
77 locate locate files matching specific patterns |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
78 log show revision history of entire repository or files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
79 manifest output the current or given revision of the project manifest |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
80 merge merge working directory with another revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
81 outgoing show changesets not found in the destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
82 parents show the parents of the working directory or revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
83 paths show aliases for remote repositories |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
84 pull pull changes from the specified source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
85 push push changes to the specified destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
86 recover roll back an interrupted transaction |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
87 remove remove the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
88 rename rename files; equivalent of copy + remove |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
89 resolve redo merges or set/view the merge status of files |
14540
944d9088da96
revert: rewrite help summary
Matt Mackall <mpm@selenic.com>
parents:
14044
diff
changeset
|
90 revert restore files to their checkout state |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
91 rollback roll back the last transaction (dangerous) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
92 root print the root (top) of the current working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
93 serve start stand-alone webserver |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
94 showconfig show combined config settings from all hgrc files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
95 status show changed files in the working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
96 summary summarize working directory state |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
97 tag add one or more tags for the current or given revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
98 tags list repository tags |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
99 tip show the tip revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
100 unbundle apply one or more changegroup files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
101 update update working directory (or switch revisions) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
102 verify verify the integrity of the repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
103 version output version and copyright information |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
104 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
105 additional help topics: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
106 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
107 config Configuration Files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
108 dates Date Formats |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
109 diffs Diff Formats |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
110 environment Environment Variables |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
111 extensions Using additional features |
14686 | 112 filesets Specifying File Sets |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
113 glossary Glossary |
14044
0528b69f8db4
help: move hgignore man page into built-in help (issue2769)
Yun Lee <yun.lee.bj@gmail.com>
parents:
13950
diff
changeset
|
114 hgignore syntax for Mercurial ignore files |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
115 hgweb Configuring hgweb |
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
116 merge-tools Merge Tools |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
117 multirevs Specifying Multiple Revisions |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
118 patterns File Name Patterns |
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
119 revisions Specifying Single Revisions |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
120 revsets Specifying Revision Sets |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
121 subrepos Subrepositories |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
122 templating Template Usage |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
123 urls URL Paths |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
124 |
13230
827a1cc127bf
commands: clarify which aliases "hg help -v" show (issue2572)
Martin Geisler <mg@aragost.com>
parents:
12829
diff
changeset
|
125 use "hg -v help" to show builtin aliases and global options |
10446
a565a2445eb5
commands: add verbose example to help text for add
Martin Geisler <mg@lazybytes.net>
parents:
10144
diff
changeset
|
126 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
127 $ hg -q help |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
128 add add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
129 addremove add all new files, delete all missing files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
130 annotate show changeset information by line for each file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
131 archive create an unversioned archive of a repository revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
132 backout reverse effect of earlier changeset |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
133 bisect subdivision search of changesets |
13368
d4ab9486e514
bookmarks: move push/pull command features to core
Matt Mackall <mpm@selenic.com>
parents:
13230
diff
changeset
|
134 bookmarks track a line of development with movable markers |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
135 branch set or show the current branch name |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
136 branches list repository named branches |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
137 bundle create a changegroup file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
138 cat output the current or given revision of files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
139 clone make a copy of an existing repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
140 commit commit the specified files or all outstanding changes |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
141 copy mark files as copied for the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
142 diff diff repository (or selected files) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
143 export dump the header and diffs for one or more changesets |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
144 forget forget the specified files on the next commit |
15238
2d710c12ffc0
graft: add initial implementation
Matt Mackall <mpm@selenic.com>
parents:
15202
diff
changeset
|
145 graft copy changes from other branches onto the current branch |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
146 grep search for a pattern in specified files and revisions |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
147 heads show current repository heads or show branch heads |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
148 help show help for a given topic or a help overview |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
149 identify identify the working copy or specified revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
150 import import an ordered set of patches |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
151 incoming show new changesets found in source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
152 init create a new repository in the given directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
153 locate locate files matching specific patterns |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
154 log show revision history of entire repository or files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
155 manifest output the current or given revision of the project manifest |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
156 merge merge working directory with another revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
157 outgoing show changesets not found in the destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
158 parents show the parents of the working directory or revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
159 paths show aliases for remote repositories |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
160 pull pull changes from the specified source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
161 push push changes to the specified destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
162 recover roll back an interrupted transaction |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
163 remove remove the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
164 rename rename files; equivalent of copy + remove |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
165 resolve redo merges or set/view the merge status of files |
14540
944d9088da96
revert: rewrite help summary
Matt Mackall <mpm@selenic.com>
parents:
14044
diff
changeset
|
166 revert restore files to their checkout state |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
167 rollback roll back the last transaction (dangerous) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
168 root print the root (top) of the current working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
169 serve start stand-alone webserver |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
170 showconfig show combined config settings from all hgrc files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
171 status show changed files in the working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
172 summary summarize working directory state |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
173 tag add one or more tags for the current or given revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
174 tags list repository tags |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
175 tip show the tip revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
176 unbundle apply one or more changegroup files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
177 update update working directory (or switch revisions) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
178 verify verify the integrity of the repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
179 version output version and copyright information |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
180 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
181 additional help topics: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
182 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
183 config Configuration Files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
184 dates Date Formats |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
185 diffs Diff Formats |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
186 environment Environment Variables |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
187 extensions Using additional features |
14686 | 188 filesets Specifying File Sets |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
189 glossary Glossary |
14044
0528b69f8db4
help: move hgignore man page into built-in help (issue2769)
Yun Lee <yun.lee.bj@gmail.com>
parents:
13950
diff
changeset
|
190 hgignore syntax for Mercurial ignore files |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
191 hgweb Configuring hgweb |
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
192 merge-tools Merge Tools |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
193 multirevs Specifying Multiple Revisions |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
194 patterns File Name Patterns |
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
195 revisions Specifying Single Revisions |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
196 revsets Specifying Revision Sets |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
197 subrepos Subrepositories |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
198 templating Template Usage |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
199 urls URL Paths |
10121
ac212bcc852b
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10110
diff
changeset
|
200 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
201 Test short command list with verbose option |
10139
d09bed527343
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10121
diff
changeset
|
202 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
203 $ hg -v help shortlist |
15020 | 204 Mercurial Distributed SCM |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
205 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
206 basic commands: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
207 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
208 add: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
209 add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
210 annotate, blame: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
211 show changeset information by line for each file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
212 clone: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
213 make a copy of an existing repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
214 commit, ci: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
215 commit the specified files or all outstanding changes |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
216 diff: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
217 diff repository (or selected files) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
218 export: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
219 dump the header and diffs for one or more changesets |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
220 forget: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
221 forget the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
222 init: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
223 create a new repository in the given directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
224 log, history: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
225 show revision history of entire repository or files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
226 merge: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
227 merge working directory with another revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
228 pull: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
229 pull changes from the specified source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
230 push: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
231 push changes to the specified destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
232 remove, rm: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
233 remove the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
234 serve: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
235 start stand-alone webserver |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
236 status, st: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
237 show changed files in the working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
238 summary, sum: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
239 summarize working directory state |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
240 update, up, checkout, co: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
241 update working directory (or switch revisions) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
242 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
243 global options: |
15145
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
244 |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
245 -R --repository REPO repository root directory or name of overlay bundle |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
246 file |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
247 --cwd DIR change working directory |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
248 -y --noninteractive do not prompt, automatically pick the first choice for |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
249 all prompts |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
250 -q --quiet suppress output |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
251 -v --verbose enable additional output |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
252 --config CONFIG [+] set/override config option (use 'section.name=value') |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
253 --debug enable debugging output |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
254 --debugger start debugger |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
255 --encoding ENCODE set the charset encoding (default: ascii) |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
256 --encodingmode MODE set the charset encoding mode (default: strict) |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
257 --traceback always print a traceback on exception |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
258 --time time how long the command takes |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
259 --profile print command execution profile |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
260 --version output version information and exit |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
261 -h --help display help and exit |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
262 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
263 [+] marked option can be specified multiple times |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
264 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
265 use "hg help" for the full list of commands |
10140
5d868e0565f6
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10139
diff
changeset
|
266 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
267 $ hg add -h |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
268 hg add [OPTION]... [FILE]... |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
269 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
270 add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
271 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
272 Schedule files to be version controlled and added to the repository. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
273 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
274 The files will be added to the repository at the next commit. To undo an |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
275 add before that, see "hg forget". |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
276 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
277 If no names are given, add all files to the repository. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
278 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
279 Returns 0 if all files are successfully added. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
280 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
281 options: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
282 |
15145
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
283 -I --include PATTERN [+] include names matching the given patterns |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
284 -X --exclude PATTERN [+] exclude names matching the given patterns |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
285 -S --subrepos recurse into subrepositories |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
286 -n --dry-run do not perform actions, just print output |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
287 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
288 [+] marked option can be specified multiple times |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
289 |
15202
0150741caace
help: unify the two -v notes for command help
Matt Mackall <mpm@selenic.com>
parents:
15145
diff
changeset
|
290 use "hg -v help add" to show more info |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
291 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
292 Verbose help for add |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
293 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
294 $ hg add -hv |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
295 hg add [OPTION]... [FILE]... |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
296 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
297 add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
298 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
299 Schedule files to be version controlled and added to the repository. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
300 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
301 The files will be added to the repository at the next commit. To undo an |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
302 add before that, see "hg forget". |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
303 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
304 If no names are given, add all files to the repository. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
305 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
306 An example showing how new (unknown) files are added automatically by "hg |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
307 add": |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
308 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
309 $ ls |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
310 foo.c |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
311 $ hg status |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
312 ? foo.c |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
313 $ hg add |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
314 adding foo.c |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
315 $ hg status |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
316 A foo.c |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
317 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
318 Returns 0 if all files are successfully added. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
319 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
320 options: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
321 |
15145
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
322 -I --include PATTERN [+] include names matching the given patterns |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
323 -X --exclude PATTERN [+] exclude names matching the given patterns |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
324 -S --subrepos recurse into subrepositories |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
325 -n --dry-run do not perform actions, just print output |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
326 |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
327 [+] marked option can be specified multiple times |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
328 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
329 global options: |
15145
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
330 |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
331 -R --repository REPO repository root directory or name of overlay bundle |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
332 file |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
333 --cwd DIR change working directory |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
334 -y --noninteractive do not prompt, automatically pick the first choice for |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
335 all prompts |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
336 -q --quiet suppress output |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
337 -v --verbose enable additional output |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
338 --config CONFIG [+] set/override config option (use 'section.name=value') |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
339 --debug enable debugging output |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
340 --debugger start debugger |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
341 --encoding ENCODE set the charset encoding (default: ascii) |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
342 --encodingmode MODE set the charset encoding mode (default: strict) |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
343 --traceback always print a traceback on exception |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
344 --time time how long the command takes |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
345 --profile print command execution profile |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
346 --version output version information and exit |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
347 -h --help display help and exit |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
348 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
349 [+] marked option can be specified multiple times |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
350 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
351 Test help option with version option |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
352 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
353 $ hg add -h --version |
12376
97ffc68f71d3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
12375
diff
changeset
|
354 Mercurial Distributed SCM (version *) (glob) |
12829
01145ee78c53
version: replace email address with url to reduce private mail
Matt Mackall <mpm@selenic.com>
parents:
12828
diff
changeset
|
355 (see http://mercurial.selenic.com for more information) |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
356 |
13472
6c70ca0b7e07
commands: update year to 2011 in version string
Martin Geisler <mg@aragost.com>
parents:
13368
diff
changeset
|
357 Copyright (C) 2005-2011 Matt Mackall and others |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
358 This is free software; see the source for copying conditions. There is NO |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
359 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
331 | 360 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
361 $ hg add --skjdfks |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
362 hg add: option --skjdfks not recognized |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
363 hg add [OPTION]... [FILE]... |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
364 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
365 add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
366 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
367 options: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
368 |
15145
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
369 -I --include PATTERN [+] include names matching the given patterns |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
370 -X --exclude PATTERN [+] exclude names matching the given patterns |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
371 -S --subrepos recurse into subrepositories |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
372 -n --dry-run do not perform actions, just print output |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
373 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
374 [+] marked option can be specified multiple times |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
375 |
13950
14d0553bd48b
help: do not show full help text for command on option errors
Adrian Buehlmann <adrian@cadifra.com>
parents:
13888
diff
changeset
|
376 use "hg help add" to show the full help text |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12270
diff
changeset
|
377 [255] |
10141
827b7d6f9016
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10140
diff
changeset
|
378 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
379 Test ambiguous command help |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
380 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
381 $ hg help ad |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
382 list of commands: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
383 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
384 add add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
385 addremove add all new files, delete all missing files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
386 |
13230
827a1cc127bf
commands: clarify which aliases "hg help -v" show (issue2572)
Martin Geisler <mg@aragost.com>
parents:
12829
diff
changeset
|
387 use "hg -v help ad" to show builtin aliases and global options |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
388 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
389 Test command without options |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
390 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
391 $ hg help verify |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
392 hg verify |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
393 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
394 verify the integrity of the repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
395 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
396 Verify the integrity of the current repository. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
397 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
398 This will perform an extensive check of the repository's integrity, |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
399 validating the hashes and checksums of each entry in the changelog, |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
400 manifest, and tracked files, as well as the integrity of their crosslinks |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
401 and indices. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
402 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
403 Returns 0 on success, 1 if errors are encountered. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
404 |
15202
0150741caace
help: unify the two -v notes for command help
Matt Mackall <mpm@selenic.com>
parents:
15145
diff
changeset
|
405 use "hg -v help verify" to show more info |
10141
827b7d6f9016
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10140
diff
changeset
|
406 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
407 $ hg help diff |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
408 hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]... |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
409 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
410 diff repository (or selected files) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
411 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
412 Show differences between revisions for the specified files. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
413 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
414 Differences between files are shown using the unified diff format. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
415 |
12389 | 416 Note: |
417 diff may generate unexpected results for merges, as it will default to | |
418 comparing against the working directory's first parent changeset if no | |
419 revisions are specified. | |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
420 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
421 When two revision arguments are given, then changes are shown between |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
422 those revisions. If only one revision is specified then that revision is |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
423 compared to the working directory, and, when no revisions are specified, |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
424 the working directory files are compared to its parent. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
425 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
426 Alternatively you can specify -c/--change with a revision to see the |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
427 changes in that changeset relative to its first parent. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
428 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
429 Without the -a/--text option, diff will avoid generating diffs of files it |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
430 detects as binary. With -a, diff will generate a diff anyway, probably |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
431 with undesirable results. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
432 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
433 Use the -g/--git option to generate diffs in the git extended diff format. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
434 For more information, read "hg help diffs". |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
435 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
436 Returns 0 on success. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
437 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
438 options: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
439 |
15145
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
440 -r --rev REV [+] revision |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
441 -c --change REV change made by revision |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
442 -a --text treat all files as text |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
443 -g --git use git extended diff format |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
444 --nodates omit dates from diff headers |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
445 -p --show-function show which function each change is in |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
446 --reverse produce a diff that undoes the changes |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
447 -w --ignore-all-space ignore white space when comparing lines |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
448 -b --ignore-space-change ignore changes in the amount of white space |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
449 -B --ignore-blank-lines ignore changes whose lines are all blank |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
450 -U --unified NUM number of lines of context to show |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
451 --stat output diffstat-style summary of changes |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
452 -I --include PATTERN [+] include names matching the given patterns |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
453 -X --exclude PATTERN [+] exclude names matching the given patterns |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
454 -S --subrepos recurse into subrepositories |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
455 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
456 [+] marked option can be specified multiple times |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
457 |
15202
0150741caace
help: unify the two -v notes for command help
Matt Mackall <mpm@selenic.com>
parents:
15145
diff
changeset
|
458 use "hg -v help diff" to show more info |
10141
827b7d6f9016
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10140
diff
changeset
|
459 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
460 $ hg help status |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
461 hg status [OPTION]... [FILE]... |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
462 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
463 aliases: st |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
464 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
465 show changed files in the working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
466 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
467 Show status of files in the repository. If names are given, only files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
468 that match are shown. Files that are clean or ignored or the source of a |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
469 copy/move operation, are not listed unless -c/--clean, -i/--ignored, |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
470 -C/--copies or -A/--all are given. Unless options described with "show |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
471 only ..." are given, the options -mardu are used. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
472 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
473 Option -q/--quiet hides untracked (unknown and ignored) files unless |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
474 explicitly requested with -u/--unknown or -i/--ignored. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
475 |
12390
aff4afdcfd2b
Use more note admonitions in help texts
Christian Ebert <blacktrash@gmx.net>
parents:
12389
diff
changeset
|
476 Note: |
aff4afdcfd2b
Use more note admonitions in help texts
Christian Ebert <blacktrash@gmx.net>
parents:
12389
diff
changeset
|
477 status may appear to disagree with diff if permissions have changed or |
aff4afdcfd2b
Use more note admonitions in help texts
Christian Ebert <blacktrash@gmx.net>
parents:
12389
diff
changeset
|
478 a merge has occurred. The standard diff format does not report |
aff4afdcfd2b
Use more note admonitions in help texts
Christian Ebert <blacktrash@gmx.net>
parents:
12389
diff
changeset
|
479 permission changes and diff only reports changes relative to one merge |
aff4afdcfd2b
Use more note admonitions in help texts
Christian Ebert <blacktrash@gmx.net>
parents:
12389
diff
changeset
|
480 parent. |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
481 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
482 If one revision is given, it is used as the base revision. If two |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
483 revisions are given, the differences between them are shown. The --change |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
484 option can also be used as a shortcut to list the changed files of a |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
485 revision from its first parent. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
486 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
487 The codes used to show the status of files are: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
488 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
489 M = modified |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
490 A = added |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
491 R = removed |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
492 C = clean |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
493 ! = missing (deleted by non-hg command, but still tracked) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
494 ? = not tracked |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
495 I = ignored |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
496 = origin of the previous file listed as A (added) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
497 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
498 Returns 0 on success. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
499 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
500 options: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
501 |
15145
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
502 -A --all show status of all files |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
503 -m --modified show only modified files |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
504 -a --added show only added files |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
505 -r --removed show only removed files |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
506 -d --deleted show only deleted (but tracked) files |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
507 -c --clean show only files without changes |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
508 -u --unknown show only unknown (not tracked) files |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
509 -i --ignored show only ignored files |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
510 -n --no-status hide status prefix |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
511 -C --copies show source of copied files |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
512 -0 --print0 end filenames with NUL, for use with xargs |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
513 --rev REV [+] show difference from revision |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
514 --change REV list the changed files of a revision |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
515 -I --include PATTERN [+] include names matching the given patterns |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
516 -X --exclude PATTERN [+] exclude names matching the given patterns |
ff26712a0c50
help: use RST to format option lists
Matt Mackall <mpm@selenic.com>
parents:
15120
diff
changeset
|
517 -S --subrepos recurse into subrepositories |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
518 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
519 [+] marked option can be specified multiple times |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
520 |
15202
0150741caace
help: unify the two -v notes for command help
Matt Mackall <mpm@selenic.com>
parents:
15145
diff
changeset
|
521 use "hg -v help status" to show more info |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
522 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
523 $ hg -q help status |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
524 hg status [OPTION]... [FILE]... |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
525 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
526 show changed files in the working directory |
10141
827b7d6f9016
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10140
diff
changeset
|
527 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
528 $ hg help foo |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
529 hg: unknown command 'foo' |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
530 Mercurial Distributed SCM |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
531 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
532 basic commands: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
533 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
534 add add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
535 annotate show changeset information by line for each file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
536 clone make a copy of an existing repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
537 commit commit the specified files or all outstanding changes |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
538 diff diff repository (or selected files) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
539 export dump the header and diffs for one or more changesets |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
540 forget forget the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
541 init create a new repository in the given directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
542 log show revision history of entire repository or files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
543 merge merge working directory with another revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
544 pull pull changes from the specified source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
545 push push changes to the specified destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
546 remove remove the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
547 serve start stand-alone webserver |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
548 status show changed files in the working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
549 summary summarize working directory state |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
550 update update working directory (or switch revisions) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
551 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
552 use "hg help" for the full list of commands or "hg -v" for details |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12270
diff
changeset
|
553 [255] |
10141
827b7d6f9016
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10140
diff
changeset
|
554 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
555 $ hg skjdfks |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
556 hg: unknown command 'skjdfks' |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
557 Mercurial Distributed SCM |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
558 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
559 basic commands: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
560 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
561 add add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
562 annotate show changeset information by line for each file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
563 clone make a copy of an existing repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
564 commit commit the specified files or all outstanding changes |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
565 diff diff repository (or selected files) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
566 export dump the header and diffs for one or more changesets |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
567 forget forget the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
568 init create a new repository in the given directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
569 log show revision history of entire repository or files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
570 merge merge working directory with another revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
571 pull pull changes from the specified source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
572 push push changes to the specified destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
573 remove remove the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
574 serve start stand-alone webserver |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
575 status show changed files in the working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
576 summary summarize working directory state |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
577 update update working directory (or switch revisions) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
578 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
579 use "hg help" for the full list of commands or "hg -v" for details |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12270
diff
changeset
|
580 [255] |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
581 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
582 $ cat > helpext.py <<EOF |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
583 > import os |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
584 > from mercurial import commands |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
585 > |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
586 > def nohelp(ui, *args, **kwargs): |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
587 > pass |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
588 > |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
589 > cmdtable = { |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
590 > "nohelp": (nohelp, [], "hg nohelp"), |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
591 > } |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
592 > |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
593 > commands.norepo += ' nohelp' |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
594 > EOF |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
595 $ echo '[extensions]' >> $HGRCPATH |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
596 $ echo "helpext = `pwd`/helpext.py" >> $HGRCPATH |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
597 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
598 Test command with no help text |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
599 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
600 $ hg help nohelp |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
601 hg nohelp |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
602 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
603 (no help text available) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
604 |
15202
0150741caace
help: unify the two -v notes for command help
Matt Mackall <mpm@selenic.com>
parents:
15145
diff
changeset
|
605 use "hg -v help nohelp" to show more info |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
606 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
607 Test that default list of commands omits extension commands |
10141
827b7d6f9016
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10140
diff
changeset
|
608 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
609 $ hg help |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
610 Mercurial Distributed SCM |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
611 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
612 list of commands: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
613 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
614 add add the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
615 addremove add all new files, delete all missing files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
616 annotate show changeset information by line for each file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
617 archive create an unversioned archive of a repository revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
618 backout reverse effect of earlier changeset |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
619 bisect subdivision search of changesets |
13368
d4ab9486e514
bookmarks: move push/pull command features to core
Matt Mackall <mpm@selenic.com>
parents:
13230
diff
changeset
|
620 bookmarks track a line of development with movable markers |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
621 branch set or show the current branch name |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
622 branches list repository named branches |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
623 bundle create a changegroup file |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
624 cat output the current or given revision of files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
625 clone make a copy of an existing repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
626 commit commit the specified files or all outstanding changes |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
627 copy mark files as copied for the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
628 diff diff repository (or selected files) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
629 export dump the header and diffs for one or more changesets |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
630 forget forget the specified files on the next commit |
15238
2d710c12ffc0
graft: add initial implementation
Matt Mackall <mpm@selenic.com>
parents:
15202
diff
changeset
|
631 graft copy changes from other branches onto the current branch |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
632 grep search for a pattern in specified files and revisions |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
633 heads show current repository heads or show branch heads |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
634 help show help for a given topic or a help overview |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
635 identify identify the working copy or specified revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
636 import import an ordered set of patches |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
637 incoming show new changesets found in source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
638 init create a new repository in the given directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
639 locate locate files matching specific patterns |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
640 log show revision history of entire repository or files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
641 manifest output the current or given revision of the project manifest |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
642 merge merge working directory with another revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
643 outgoing show changesets not found in the destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
644 parents show the parents of the working directory or revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
645 paths show aliases for remote repositories |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
646 pull pull changes from the specified source |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
647 push push changes to the specified destination |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
648 recover roll back an interrupted transaction |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
649 remove remove the specified files on the next commit |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
650 rename rename files; equivalent of copy + remove |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
651 resolve redo merges or set/view the merge status of files |
14540
944d9088da96
revert: rewrite help summary
Matt Mackall <mpm@selenic.com>
parents:
14044
diff
changeset
|
652 revert restore files to their checkout state |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
653 rollback roll back the last transaction (dangerous) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
654 root print the root (top) of the current working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
655 serve start stand-alone webserver |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
656 showconfig show combined config settings from all hgrc files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
657 status show changed files in the working directory |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
658 summary summarize working directory state |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
659 tag add one or more tags for the current or given revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
660 tags list repository tags |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
661 tip show the tip revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
662 unbundle apply one or more changegroup files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
663 update update working directory (or switch revisions) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
664 verify verify the integrity of the repository |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
665 version output version and copyright information |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
666 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
667 enabled extensions: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
668 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
669 helpext (no help text available) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
670 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
671 additional help topics: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
672 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
673 config Configuration Files |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
674 dates Date Formats |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
675 diffs Diff Formats |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
676 environment Environment Variables |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
677 extensions Using additional features |
14686 | 678 filesets Specifying File Sets |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
679 glossary Glossary |
14044
0528b69f8db4
help: move hgignore man page into built-in help (issue2769)
Yun Lee <yun.lee.bj@gmail.com>
parents:
13950
diff
changeset
|
680 hgignore syntax for Mercurial ignore files |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
681 hgweb Configuring hgweb |
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
682 merge-tools Merge Tools |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
683 multirevs Specifying Multiple Revisions |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
684 patterns File Name Patterns |
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
685 revisions Specifying Single Revisions |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
686 revsets Specifying Revision Sets |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
687 subrepos Subrepositories |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
688 templating Template Usage |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
689 urls URL Paths |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
690 |
13230
827a1cc127bf
commands: clarify which aliases "hg help -v" show (issue2572)
Martin Geisler <mg@aragost.com>
parents:
12829
diff
changeset
|
691 use "hg -v help" to show builtin aliases and global options |
10142
44fa0e205ec9
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10141
diff
changeset
|
692 |
13888
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
693 |
9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
Yun Lee <yunlee.bj@gmail.com>
parents:
13584
diff
changeset
|
694 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
695 Test list of commands with command with no help text |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
696 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
697 $ hg help helpext |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
698 helpext extension - no help text available |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
699 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
700 list of commands: |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
701 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
702 nohelp (no help text available) |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
703 |
13230
827a1cc127bf
commands: clarify which aliases "hg help -v" show (issue2572)
Martin Geisler <mg@aragost.com>
parents:
12829
diff
changeset
|
704 use "hg -v help helpext" to show builtin aliases and global options |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
705 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
706 Test a help topic |
10143
f6ac05b5684b
test-help: improve test coverage
Henri Wiechers <hwiechers@gmail.com>
parents:
10142
diff
changeset
|
707 |
12073
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
708 $ hg help revs |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
709 Specifying Single Revisions |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
710 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
711 Mercurial supports several ways to specify individual revisions. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
712 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
713 A plain integer is treated as a revision number. Negative integers are |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
714 treated as sequential offsets from the tip, with -1 denoting the tip, -2 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
715 denoting the revision prior to the tip, and so forth. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
716 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
717 A 40-digit hexadecimal string is treated as a unique revision identifier. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
718 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
719 A hexadecimal string less than 40 characters long is treated as a unique |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
720 revision identifier and is referred to as a short-form identifier. A |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
721 short-form identifier is only valid if it is the prefix of exactly one |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
722 full-length identifier. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
723 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
724 Any other string is treated as a tag or branch name. A tag name is a |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
725 symbolic name associated with a revision identifier. A branch name denotes |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
726 the tipmost revision of that branch. Tag and branch names must not contain |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
727 the ":" character. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
728 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
729 The reserved name "tip" is a special tag that always identifies the most |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
730 recent revision. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
731 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
732 The reserved name "null" indicates the null revision. This is the revision |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
733 of an empty repository, and the parent of revision 0. |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
734 |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
735 The reserved name "." indicates the working directory parent. If no |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
736 working directory is checked out, it is equivalent to null. If an |
adfff89e6058
tests: unify test-help
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10446
diff
changeset
|
737 uncommitted merge is in progress, "." is the revision of the first parent. |
12820
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
738 |
13584
02f507ce61f2
test-help: test a sample of 'templates' topic help
Patrick Mezard <pmezard@gmail.com>
parents:
13472
diff
changeset
|
739 Test templating help |
02f507ce61f2
test-help: test a sample of 'templates' topic help
Patrick Mezard <pmezard@gmail.com>
parents:
13472
diff
changeset
|
740 |
02f507ce61f2
test-help: test a sample of 'templates' topic help
Patrick Mezard <pmezard@gmail.com>
parents:
13472
diff
changeset
|
741 $ hg help templating | egrep '(desc|diffstat|firstline|nonempty) ' |
02f507ce61f2
test-help: test a sample of 'templates' topic help
Patrick Mezard <pmezard@gmail.com>
parents:
13472
diff
changeset
|
742 desc String. The text of the changeset description. |
02f507ce61f2
test-help: test a sample of 'templates' topic help
Patrick Mezard <pmezard@gmail.com>
parents:
13472
diff
changeset
|
743 diffstat String. Statistics of changes with the following format: |
02f507ce61f2
test-help: test a sample of 'templates' topic help
Patrick Mezard <pmezard@gmail.com>
parents:
13472
diff
changeset
|
744 firstline Any text. Returns the first line of text. |
02f507ce61f2
test-help: test a sample of 'templates' topic help
Patrick Mezard <pmezard@gmail.com>
parents:
13472
diff
changeset
|
745 nonempty Any text. Returns '(none)' if the string is empty. |
02f507ce61f2
test-help: test a sample of 'templates' topic help
Patrick Mezard <pmezard@gmail.com>
parents:
13472
diff
changeset
|
746 |
12820
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
747 Test help hooks |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
748 |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
749 $ cat > helphook1.py <<EOF |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
750 > from mercurial import help |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
751 > |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
752 > def rewrite(topic, doc): |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
753 > return doc + '\nhelphook1\n' |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
754 > |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
755 > def extsetup(ui): |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
756 > help.addtopichook('revsets', rewrite) |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
757 > EOF |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
758 $ cat > helphook2.py <<EOF |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
759 > from mercurial import help |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
760 > |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
761 > def rewrite(topic, doc): |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
762 > return doc + '\nhelphook2\n' |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
763 > |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
764 > def extsetup(ui): |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
765 > help.addtopichook('revsets', rewrite) |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
766 > EOF |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
767 $ echo '[extensions]' >> $HGRCPATH |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
768 $ echo "helphook1 = `pwd`/helphook1.py" >> $HGRCPATH |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
769 $ echo "helphook2 = `pwd`/helphook2.py" >> $HGRCPATH |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
770 $ hg help revsets | grep helphook |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
771 helphook1 |
0edc0aa7432d
help: add topic rewriting hooks
Patrick Mezard <pmezard@gmail.com>
parents:
12787
diff
changeset
|
772 helphook2 |