Show More
@@ -1,30 +1,51 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg |
|
3 | hg | |
4 | hg -q |
|
4 | hg -q | |
5 | hg help |
|
5 | hg help | |
6 | hg -q help |
|
6 | hg -q help | |
7 |
|
7 | |||
8 | echo %% test short command list with verbose option |
|
8 | echo %% test short command list with verbose option | |
9 | hg -v help shortlist | sed 's/[(]version [^)]*[)]/(version xxx)/' |
|
9 | hg -v help shortlist | sed 's/[(]version [^)]*[)]/(version xxx)/' | |
10 |
|
10 | |||
11 | hg add -h |
|
11 | hg add -h | |
12 |
|
12 | |||
13 | echo %% test help option with version option |
|
13 | echo %% test help option with version option | |
14 | hg add -h --version | sed 's/[(]version [^)]*[)]/(version xxx)/' |
|
14 | hg add -h --version | sed 's/[(]version [^)]*[)]/(version xxx)/' | |
15 |
|
15 | |||
16 | hg add --skjdfks |
|
16 | hg add --skjdfks | |
17 |
|
17 | |||
18 | echo %% test ambiguous command help |
|
18 | echo %% test ambiguous command help | |
19 | hg help ad |
|
19 | hg help ad | |
20 |
|
20 | |||
21 | echo %% test command without options |
|
21 | echo %% test command without options | |
22 | hg help verify |
|
22 | hg help verify | |
23 |
|
23 | |||
24 | hg help diff |
|
24 | hg help diff | |
25 | hg help status |
|
25 | hg help status | |
26 | hg -q help status |
|
26 | hg -q help status | |
27 | hg help foo |
|
27 | hg help foo | |
28 | hg skjdfks |
|
28 | hg skjdfks | |
29 |
|
29 | |||
|
30 | cat > helpext.py <<EOF | |||
|
31 | import os | |||
|
32 | from mercurial import commands | |||
|
33 | ||||
|
34 | def nohelp(ui, *args, **kwargs): | |||
|
35 | pass | |||
|
36 | ||||
|
37 | cmdtable = { | |||
|
38 | "nohelp": (nohelp, [], "hg nohelp"), | |||
|
39 | } | |||
|
40 | ||||
|
41 | commands.norepo += ' nohelp' | |||
|
42 | EOF | |||
|
43 | abspath=`pwd`/helpext.py | |||
|
44 | ||||
|
45 | echo '[extensions]' >> $HGRCPATH | |||
|
46 | echo "helpext = $abspath" >> $HGRCPATH | |||
|
47 | ||||
|
48 | echo %% test command with no help text | |||
|
49 | hg help nohelp | |||
|
50 | ||||
30 | exit 0 |
|
51 | exit 0 |
@@ -1,464 +1,470 b'' | |||||
1 | Mercurial Distributed SCM |
|
1 | Mercurial Distributed SCM | |
2 |
|
2 | |||
3 | basic commands: |
|
3 | basic commands: | |
4 |
|
4 | |||
5 | add add the specified files on the next commit |
|
5 | add add the specified files on the next commit | |
6 | annotate show changeset information by line for each file |
|
6 | annotate show changeset information by line for each file | |
7 | clone make a copy of an existing repository |
|
7 | clone make a copy of an existing repository | |
8 | commit commit the specified files or all outstanding changes |
|
8 | commit commit the specified files or all outstanding changes | |
9 | diff diff repository (or selected files) |
|
9 | diff diff repository (or selected files) | |
10 | export dump the header and diffs for one or more changesets |
|
10 | export dump the header and diffs for one or more changesets | |
11 | forget forget the specified files on the next commit |
|
11 | forget forget the specified files on the next commit | |
12 | init create a new repository in the given directory |
|
12 | init create a new repository in the given directory | |
13 | log show revision history of entire repository or files |
|
13 | log show revision history of entire repository or files | |
14 | merge merge working directory with another revision |
|
14 | merge merge working directory with another revision | |
15 | pull pull changes from the specified source |
|
15 | pull pull changes from the specified source | |
16 | push push changes to the specified destination |
|
16 | push push changes to the specified destination | |
17 | remove remove the specified files on the next commit |
|
17 | remove remove the specified files on the next commit | |
18 | serve export the repository via HTTP |
|
18 | serve export the repository via HTTP | |
19 | status show changed files in the working directory |
|
19 | status show changed files in the working directory | |
20 | summary summarize working directory state |
|
20 | summary summarize working directory state | |
21 | update update working directory |
|
21 | update update working directory | |
22 |
|
22 | |||
23 | use "hg help" for the full list of commands or "hg -v" for details |
|
23 | use "hg help" for the full list of commands or "hg -v" for details | |
24 | add add the specified files on the next commit |
|
24 | add add the specified files on the next commit | |
25 | annotate show changeset information by line for each file |
|
25 | annotate show changeset information by line for each file | |
26 | clone make a copy of an existing repository |
|
26 | clone make a copy of an existing repository | |
27 | commit commit the specified files or all outstanding changes |
|
27 | commit commit the specified files or all outstanding changes | |
28 | diff diff repository (or selected files) |
|
28 | diff diff repository (or selected files) | |
29 | export dump the header and diffs for one or more changesets |
|
29 | export dump the header and diffs for one or more changesets | |
30 | forget forget the specified files on the next commit |
|
30 | forget forget the specified files on the next commit | |
31 | init create a new repository in the given directory |
|
31 | init create a new repository in the given directory | |
32 | log show revision history of entire repository or files |
|
32 | log show revision history of entire repository or files | |
33 | merge merge working directory with another revision |
|
33 | merge merge working directory with another revision | |
34 | pull pull changes from the specified source |
|
34 | pull pull changes from the specified source | |
35 | push push changes to the specified destination |
|
35 | push push changes to the specified destination | |
36 | remove remove the specified files on the next commit |
|
36 | remove remove the specified files on the next commit | |
37 | serve export the repository via HTTP |
|
37 | serve export the repository via HTTP | |
38 | status show changed files in the working directory |
|
38 | status show changed files in the working directory | |
39 | summary summarize working directory state |
|
39 | summary summarize working directory state | |
40 | update update working directory |
|
40 | update update working directory | |
41 | Mercurial Distributed SCM |
|
41 | Mercurial Distributed SCM | |
42 |
|
42 | |||
43 | list of commands: |
|
43 | list of commands: | |
44 |
|
44 | |||
45 | add add the specified files on the next commit |
|
45 | add add the specified files on the next commit | |
46 | addremove add all new files, delete all missing files |
|
46 | addremove add all new files, delete all missing files | |
47 | annotate show changeset information by line for each file |
|
47 | annotate show changeset information by line for each file | |
48 | archive create an unversioned archive of a repository revision |
|
48 | archive create an unversioned archive of a repository revision | |
49 | backout reverse effect of earlier changeset |
|
49 | backout reverse effect of earlier changeset | |
50 | bisect subdivision search of changesets |
|
50 | bisect subdivision search of changesets | |
51 | branch set or show the current branch name |
|
51 | branch set or show the current branch name | |
52 | branches list repository named branches |
|
52 | branches list repository named branches | |
53 | bundle create a changegroup file |
|
53 | bundle create a changegroup file | |
54 | cat output the current or given revision of files |
|
54 | cat output the current or given revision of files | |
55 | clone make a copy of an existing repository |
|
55 | clone make a copy of an existing repository | |
56 | commit commit the specified files or all outstanding changes |
|
56 | commit commit the specified files or all outstanding changes | |
57 | copy mark files as copied for the next commit |
|
57 | copy mark files as copied for the next commit | |
58 | diff diff repository (or selected files) |
|
58 | diff diff repository (or selected files) | |
59 | export dump the header and diffs for one or more changesets |
|
59 | export dump the header and diffs for one or more changesets | |
60 | forget forget the specified files on the next commit |
|
60 | forget forget the specified files on the next commit | |
61 | grep search for a pattern in specified files and revisions |
|
61 | grep search for a pattern in specified files and revisions | |
62 | heads show current repository heads or show branch heads |
|
62 | heads show current repository heads or show branch heads | |
63 | help show help for a given topic or a help overview |
|
63 | help show help for a given topic or a help overview | |
64 | identify identify the working copy or specified revision |
|
64 | identify identify the working copy or specified revision | |
65 | import import an ordered set of patches |
|
65 | import import an ordered set of patches | |
66 | incoming show new changesets found in source |
|
66 | incoming show new changesets found in source | |
67 | init create a new repository in the given directory |
|
67 | init create a new repository in the given directory | |
68 | locate locate files matching specific patterns |
|
68 | locate locate files matching specific patterns | |
69 | log show revision history of entire repository or files |
|
69 | log show revision history of entire repository or files | |
70 | manifest output the current or given revision of the project manifest |
|
70 | manifest output the current or given revision of the project manifest | |
71 | merge merge working directory with another revision |
|
71 | merge merge working directory with another revision | |
72 | outgoing show changesets not found in destination |
|
72 | outgoing show changesets not found in destination | |
73 | parents show the parents of the working directory or revision |
|
73 | parents show the parents of the working directory or revision | |
74 | paths show aliases for remote repositories |
|
74 | paths show aliases for remote repositories | |
75 | pull pull changes from the specified source |
|
75 | pull pull changes from the specified source | |
76 | push push changes to the specified destination |
|
76 | push push changes to the specified destination | |
77 | recover roll back an interrupted transaction |
|
77 | recover roll back an interrupted transaction | |
78 | remove remove the specified files on the next commit |
|
78 | remove remove the specified files on the next commit | |
79 | rename rename files; equivalent of copy + remove |
|
79 | rename rename files; equivalent of copy + remove | |
80 | resolve retry file merges from a merge or update |
|
80 | resolve retry file merges from a merge or update | |
81 | revert restore individual files or directories to an earlier state |
|
81 | revert restore individual files or directories to an earlier state | |
82 | rollback roll back the last transaction |
|
82 | rollback roll back the last transaction | |
83 | root print the root (top) of the current working directory |
|
83 | root print the root (top) of the current working directory | |
84 | serve export the repository via HTTP |
|
84 | serve export the repository via HTTP | |
85 | showconfig show combined config settings from all hgrc files |
|
85 | showconfig show combined config settings from all hgrc files | |
86 | status show changed files in the working directory |
|
86 | status show changed files in the working directory | |
87 | summary summarize working directory state |
|
87 | summary summarize working directory state | |
88 | tag add one or more tags for the current or given revision |
|
88 | tag add one or more tags for the current or given revision | |
89 | tags list repository tags |
|
89 | tags list repository tags | |
90 | tip show the tip revision |
|
90 | tip show the tip revision | |
91 | unbundle apply one or more changegroup files |
|
91 | unbundle apply one or more changegroup files | |
92 | update update working directory |
|
92 | update update working directory | |
93 | verify verify the integrity of the repository |
|
93 | verify verify the integrity of the repository | |
94 | version output version and copyright information |
|
94 | version output version and copyright information | |
95 |
|
95 | |||
96 | additional help topics: |
|
96 | additional help topics: | |
97 |
|
97 | |||
98 | config Configuration Files |
|
98 | config Configuration Files | |
99 | dates Date Formats |
|
99 | dates Date Formats | |
100 | patterns File Name Patterns |
|
100 | patterns File Name Patterns | |
101 | environment Environment Variables |
|
101 | environment Environment Variables | |
102 | revisions Specifying Single Revisions |
|
102 | revisions Specifying Single Revisions | |
103 | multirevs Specifying Multiple Revisions |
|
103 | multirevs Specifying Multiple Revisions | |
104 | diffs Diff Formats |
|
104 | diffs Diff Formats | |
105 | templating Template Usage |
|
105 | templating Template Usage | |
106 | urls URL Paths |
|
106 | urls URL Paths | |
107 | extensions Using additional features |
|
107 | extensions Using additional features | |
108 |
|
108 | |||
109 | use "hg -v help" to show aliases and global options |
|
109 | use "hg -v help" to show aliases and global options | |
110 | add add the specified files on the next commit |
|
110 | add add the specified files on the next commit | |
111 | addremove add all new files, delete all missing files |
|
111 | addremove add all new files, delete all missing files | |
112 | annotate show changeset information by line for each file |
|
112 | annotate show changeset information by line for each file | |
113 | archive create an unversioned archive of a repository revision |
|
113 | archive create an unversioned archive of a repository revision | |
114 | backout reverse effect of earlier changeset |
|
114 | backout reverse effect of earlier changeset | |
115 | bisect subdivision search of changesets |
|
115 | bisect subdivision search of changesets | |
116 | branch set or show the current branch name |
|
116 | branch set or show the current branch name | |
117 | branches list repository named branches |
|
117 | branches list repository named branches | |
118 | bundle create a changegroup file |
|
118 | bundle create a changegroup file | |
119 | cat output the current or given revision of files |
|
119 | cat output the current or given revision of files | |
120 | clone make a copy of an existing repository |
|
120 | clone make a copy of an existing repository | |
121 | commit commit the specified files or all outstanding changes |
|
121 | commit commit the specified files or all outstanding changes | |
122 | copy mark files as copied for the next commit |
|
122 | copy mark files as copied for the next commit | |
123 | diff diff repository (or selected files) |
|
123 | diff diff repository (or selected files) | |
124 | export dump the header and diffs for one or more changesets |
|
124 | export dump the header and diffs for one or more changesets | |
125 | forget forget the specified files on the next commit |
|
125 | forget forget the specified files on the next commit | |
126 | grep search for a pattern in specified files and revisions |
|
126 | grep search for a pattern in specified files and revisions | |
127 | heads show current repository heads or show branch heads |
|
127 | heads show current repository heads or show branch heads | |
128 | help show help for a given topic or a help overview |
|
128 | help show help for a given topic or a help overview | |
129 | identify identify the working copy or specified revision |
|
129 | identify identify the working copy or specified revision | |
130 | import import an ordered set of patches |
|
130 | import import an ordered set of patches | |
131 | incoming show new changesets found in source |
|
131 | incoming show new changesets found in source | |
132 | init create a new repository in the given directory |
|
132 | init create a new repository in the given directory | |
133 | locate locate files matching specific patterns |
|
133 | locate locate files matching specific patterns | |
134 | log show revision history of entire repository or files |
|
134 | log show revision history of entire repository or files | |
135 | manifest output the current or given revision of the project manifest |
|
135 | manifest output the current or given revision of the project manifest | |
136 | merge merge working directory with another revision |
|
136 | merge merge working directory with another revision | |
137 | outgoing show changesets not found in destination |
|
137 | outgoing show changesets not found in destination | |
138 | parents show the parents of the working directory or revision |
|
138 | parents show the parents of the working directory or revision | |
139 | paths show aliases for remote repositories |
|
139 | paths show aliases for remote repositories | |
140 | pull pull changes from the specified source |
|
140 | pull pull changes from the specified source | |
141 | push push changes to the specified destination |
|
141 | push push changes to the specified destination | |
142 | recover roll back an interrupted transaction |
|
142 | recover roll back an interrupted transaction | |
143 | remove remove the specified files on the next commit |
|
143 | remove remove the specified files on the next commit | |
144 | rename rename files; equivalent of copy + remove |
|
144 | rename rename files; equivalent of copy + remove | |
145 | resolve retry file merges from a merge or update |
|
145 | resolve retry file merges from a merge or update | |
146 | revert restore individual files or directories to an earlier state |
|
146 | revert restore individual files or directories to an earlier state | |
147 | rollback roll back the last transaction |
|
147 | rollback roll back the last transaction | |
148 | root print the root (top) of the current working directory |
|
148 | root print the root (top) of the current working directory | |
149 | serve export the repository via HTTP |
|
149 | serve export the repository via HTTP | |
150 | showconfig show combined config settings from all hgrc files |
|
150 | showconfig show combined config settings from all hgrc files | |
151 | status show changed files in the working directory |
|
151 | status show changed files in the working directory | |
152 | summary summarize working directory state |
|
152 | summary summarize working directory state | |
153 | tag add one or more tags for the current or given revision |
|
153 | tag add one or more tags for the current or given revision | |
154 | tags list repository tags |
|
154 | tags list repository tags | |
155 | tip show the tip revision |
|
155 | tip show the tip revision | |
156 | unbundle apply one or more changegroup files |
|
156 | unbundle apply one or more changegroup files | |
157 | update update working directory |
|
157 | update update working directory | |
158 | verify verify the integrity of the repository |
|
158 | verify verify the integrity of the repository | |
159 | version output version and copyright information |
|
159 | version output version and copyright information | |
160 |
|
160 | |||
161 | additional help topics: |
|
161 | additional help topics: | |
162 |
|
162 | |||
163 | config Configuration Files |
|
163 | config Configuration Files | |
164 | dates Date Formats |
|
164 | dates Date Formats | |
165 | patterns File Name Patterns |
|
165 | patterns File Name Patterns | |
166 | environment Environment Variables |
|
166 | environment Environment Variables | |
167 | revisions Specifying Single Revisions |
|
167 | revisions Specifying Single Revisions | |
168 | multirevs Specifying Multiple Revisions |
|
168 | multirevs Specifying Multiple Revisions | |
169 | diffs Diff Formats |
|
169 | diffs Diff Formats | |
170 | templating Template Usage |
|
170 | templating Template Usage | |
171 | urls URL Paths |
|
171 | urls URL Paths | |
172 | extensions Using additional features |
|
172 | extensions Using additional features | |
173 | %% test short command list with verbose option |
|
173 | %% test short command list with verbose option | |
174 | Mercurial Distributed SCM (version xxx) |
|
174 | Mercurial Distributed SCM (version xxx) | |
175 |
|
175 | |||
176 | Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others |
|
176 | Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others | |
177 | This is free software; see the source for copying conditions. There is NO |
|
177 | This is free software; see the source for copying conditions. There is NO | |
178 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
178 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
179 |
|
179 | |||
180 | basic commands: |
|
180 | basic commands: | |
181 |
|
181 | |||
182 | add: |
|
182 | add: | |
183 | add the specified files on the next commit |
|
183 | add the specified files on the next commit | |
184 | annotate, blame: |
|
184 | annotate, blame: | |
185 | show changeset information by line for each file |
|
185 | show changeset information by line for each file | |
186 | clone: |
|
186 | clone: | |
187 | make a copy of an existing repository |
|
187 | make a copy of an existing repository | |
188 | commit, ci: |
|
188 | commit, ci: | |
189 | commit the specified files or all outstanding changes |
|
189 | commit the specified files or all outstanding changes | |
190 | diff: |
|
190 | diff: | |
191 | diff repository (or selected files) |
|
191 | diff repository (or selected files) | |
192 | export: |
|
192 | export: | |
193 | dump the header and diffs for one or more changesets |
|
193 | dump the header and diffs for one or more changesets | |
194 | forget: |
|
194 | forget: | |
195 | forget the specified files on the next commit |
|
195 | forget the specified files on the next commit | |
196 | init: |
|
196 | init: | |
197 | create a new repository in the given directory |
|
197 | create a new repository in the given directory | |
198 | log, history: |
|
198 | log, history: | |
199 | show revision history of entire repository or files |
|
199 | show revision history of entire repository or files | |
200 | merge: |
|
200 | merge: | |
201 | merge working directory with another revision |
|
201 | merge working directory with another revision | |
202 | pull: |
|
202 | pull: | |
203 | pull changes from the specified source |
|
203 | pull changes from the specified source | |
204 | push: |
|
204 | push: | |
205 | push changes to the specified destination |
|
205 | push changes to the specified destination | |
206 | remove, rm: |
|
206 | remove, rm: | |
207 | remove the specified files on the next commit |
|
207 | remove the specified files on the next commit | |
208 | serve: |
|
208 | serve: | |
209 | export the repository via HTTP |
|
209 | export the repository via HTTP | |
210 | status, st: |
|
210 | status, st: | |
211 | show changed files in the working directory |
|
211 | show changed files in the working directory | |
212 | summary, sum: |
|
212 | summary, sum: | |
213 | summarize working directory state |
|
213 | summarize working directory state | |
214 | update, up, checkout, co: |
|
214 | update, up, checkout, co: | |
215 | update working directory |
|
215 | update working directory | |
216 |
|
216 | |||
217 | global options: |
|
217 | global options: | |
218 | -R --repository repository root directory or name of overlay bundle file |
|
218 | -R --repository repository root directory or name of overlay bundle file | |
219 | --cwd change working directory |
|
219 | --cwd change working directory | |
220 | -y --noninteractive do not prompt, assume 'yes' for any required answers |
|
220 | -y --noninteractive do not prompt, assume 'yes' for any required answers | |
221 | -q --quiet suppress output |
|
221 | -q --quiet suppress output | |
222 | -v --verbose enable additional output |
|
222 | -v --verbose enable additional output | |
223 | --config set/override config option |
|
223 | --config set/override config option | |
224 | --debug enable debugging output |
|
224 | --debug enable debugging output | |
225 | --debugger start debugger |
|
225 | --debugger start debugger | |
226 | --encoding set the charset encoding (default: ascii) |
|
226 | --encoding set the charset encoding (default: ascii) | |
227 | --encodingmode set the charset encoding mode (default: strict) |
|
227 | --encodingmode set the charset encoding mode (default: strict) | |
228 | --traceback always print a traceback on exception |
|
228 | --traceback always print a traceback on exception | |
229 | --time time how long the command takes |
|
229 | --time time how long the command takes | |
230 | --profile print command execution profile |
|
230 | --profile print command execution profile | |
231 | --version output version information and exit |
|
231 | --version output version information and exit | |
232 | -h --help display help and exit |
|
232 | -h --help display help and exit | |
233 |
|
233 | |||
234 | use "hg help" for the full list of commands |
|
234 | use "hg help" for the full list of commands | |
235 | hg add [OPTION]... [FILE]... |
|
235 | hg add [OPTION]... [FILE]... | |
236 |
|
236 | |||
237 | add the specified files on the next commit |
|
237 | add the specified files on the next commit | |
238 |
|
238 | |||
239 | Schedule files to be version controlled and added to the repository. |
|
239 | Schedule files to be version controlled and added to the repository. | |
240 |
|
240 | |||
241 | The files will be added to the repository at the next commit. To undo an |
|
241 | The files will be added to the repository at the next commit. To undo an | |
242 | add before that, see hg forget. |
|
242 | add before that, see hg forget. | |
243 |
|
243 | |||
244 | If no names are given, add all files to the repository. |
|
244 | If no names are given, add all files to the repository. | |
245 |
|
245 | |||
246 | options: |
|
246 | options: | |
247 |
|
247 | |||
248 | -I --include include names matching the given patterns |
|
248 | -I --include include names matching the given patterns | |
249 | -X --exclude exclude names matching the given patterns |
|
249 | -X --exclude exclude names matching the given patterns | |
250 | -n --dry-run do not perform actions, just print output |
|
250 | -n --dry-run do not perform actions, just print output | |
251 |
|
251 | |||
252 | use "hg -v help add" to show global options |
|
252 | use "hg -v help add" to show global options | |
253 | %% test help option with version option |
|
253 | %% test help option with version option | |
254 | Mercurial Distributed SCM (version xxx) |
|
254 | Mercurial Distributed SCM (version xxx) | |
255 |
|
255 | |||
256 | Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others |
|
256 | Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others | |
257 | This is free software; see the source for copying conditions. There is NO |
|
257 | This is free software; see the source for copying conditions. There is NO | |
258 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
258 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
259 |
|
259 | |||
260 | hg add [OPTION]... [FILE]... |
|
260 | hg add [OPTION]... [FILE]... | |
261 |
|
261 | |||
262 | add the specified files on the next commit |
|
262 | add the specified files on the next commit | |
263 |
|
263 | |||
264 | Schedule files to be version controlled and added to the repository. |
|
264 | Schedule files to be version controlled and added to the repository. | |
265 |
|
265 | |||
266 | The files will be added to the repository at the next commit. To undo an |
|
266 | The files will be added to the repository at the next commit. To undo an | |
267 | add before that, see hg forget. |
|
267 | add before that, see hg forget. | |
268 |
|
268 | |||
269 | If no names are given, add all files to the repository. |
|
269 | If no names are given, add all files to the repository. | |
270 |
|
270 | |||
271 | options: |
|
271 | options: | |
272 |
|
272 | |||
273 | -I --include include names matching the given patterns |
|
273 | -I --include include names matching the given patterns | |
274 | -X --exclude exclude names matching the given patterns |
|
274 | -X --exclude exclude names matching the given patterns | |
275 | -n --dry-run do not perform actions, just print output |
|
275 | -n --dry-run do not perform actions, just print output | |
276 |
|
276 | |||
277 | use "hg -v help add" to show global options |
|
277 | use "hg -v help add" to show global options | |
278 | hg add: option --skjdfks not recognized |
|
278 | hg add: option --skjdfks not recognized | |
279 | hg add [OPTION]... [FILE]... |
|
279 | hg add [OPTION]... [FILE]... | |
280 |
|
280 | |||
281 | add the specified files on the next commit |
|
281 | add the specified files on the next commit | |
282 |
|
282 | |||
283 | Schedule files to be version controlled and added to the repository. |
|
283 | Schedule files to be version controlled and added to the repository. | |
284 |
|
284 | |||
285 | The files will be added to the repository at the next commit. To undo an |
|
285 | The files will be added to the repository at the next commit. To undo an | |
286 | add before that, see hg forget. |
|
286 | add before that, see hg forget. | |
287 |
|
287 | |||
288 | If no names are given, add all files to the repository. |
|
288 | If no names are given, add all files to the repository. | |
289 |
|
289 | |||
290 | options: |
|
290 | options: | |
291 |
|
291 | |||
292 | -I --include include names matching the given patterns |
|
292 | -I --include include names matching the given patterns | |
293 | -X --exclude exclude names matching the given patterns |
|
293 | -X --exclude exclude names matching the given patterns | |
294 | -n --dry-run do not perform actions, just print output |
|
294 | -n --dry-run do not perform actions, just print output | |
295 |
|
295 | |||
296 | use "hg -v help add" to show global options |
|
296 | use "hg -v help add" to show global options | |
297 | %% test ambiguous command help |
|
297 | %% test ambiguous command help | |
298 | list of commands: |
|
298 | list of commands: | |
299 |
|
299 | |||
300 | add add the specified files on the next commit |
|
300 | add add the specified files on the next commit | |
301 | addremove add all new files, delete all missing files |
|
301 | addremove add all new files, delete all missing files | |
302 |
|
302 | |||
303 | use "hg -v help ad" to show aliases and global options |
|
303 | use "hg -v help ad" to show aliases and global options | |
304 | %% test command without options |
|
304 | %% test command without options | |
305 | hg verify |
|
305 | hg verify | |
306 |
|
306 | |||
307 | verify the integrity of the repository |
|
307 | verify the integrity of the repository | |
308 |
|
308 | |||
309 | Verify the integrity of the current repository. |
|
309 | Verify the integrity of the current repository. | |
310 |
|
310 | |||
311 | This will perform an extensive check of the repository's integrity, |
|
311 | This will perform an extensive check of the repository's integrity, | |
312 | validating the hashes and checksums of each entry in the changelog, |
|
312 | validating the hashes and checksums of each entry in the changelog, | |
313 | manifest, and tracked files, as well as the integrity of their crosslinks |
|
313 | manifest, and tracked files, as well as the integrity of their crosslinks | |
314 | and indices. |
|
314 | and indices. | |
315 |
|
315 | |||
316 | use "hg -v help verify" to show global options |
|
316 | use "hg -v help verify" to show global options | |
317 | hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]... |
|
317 | hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]... | |
318 |
|
318 | |||
319 | diff repository (or selected files) |
|
319 | diff repository (or selected files) | |
320 |
|
320 | |||
321 | Show differences between revisions for the specified files. |
|
321 | Show differences between revisions for the specified files. | |
322 |
|
322 | |||
323 | Differences between files are shown using the unified diff format. |
|
323 | Differences between files are shown using the unified diff format. | |
324 |
|
324 | |||
325 | NOTE: diff may generate unexpected results for merges, as it will default |
|
325 | NOTE: diff may generate unexpected results for merges, as it will default | |
326 | to comparing against the working directory's first parent changeset if no |
|
326 | to comparing against the working directory's first parent changeset if no | |
327 | revisions are specified. |
|
327 | revisions are specified. | |
328 |
|
328 | |||
329 | When two revision arguments are given, then changes are shown between |
|
329 | When two revision arguments are given, then changes are shown between | |
330 | those revisions. If only one revision is specified then that revision is |
|
330 | those revisions. If only one revision is specified then that revision is | |
331 | compared to the working directory, and, when no revisions are specified, |
|
331 | compared to the working directory, and, when no revisions are specified, | |
332 | the working directory files are compared to its parent. |
|
332 | the working directory files are compared to its parent. | |
333 |
|
333 | |||
334 | Without the -a/--text option, diff will avoid generating diffs of files it |
|
334 | Without the -a/--text option, diff will avoid generating diffs of files it | |
335 | detects as binary. With -a, diff will generate a diff anyway, probably |
|
335 | detects as binary. With -a, diff will generate a diff anyway, probably | |
336 | with undesirable results. |
|
336 | with undesirable results. | |
337 |
|
337 | |||
338 | Use the -g/--git option to generate diffs in the git extended diff format. |
|
338 | Use the -g/--git option to generate diffs in the git extended diff format. | |
339 | For more information, read 'hg help diffs'. |
|
339 | For more information, read 'hg help diffs'. | |
340 |
|
340 | |||
341 | options: |
|
341 | options: | |
342 |
|
342 | |||
343 | -r --rev revision |
|
343 | -r --rev revision | |
344 | -c --change change made by revision |
|
344 | -c --change change made by revision | |
345 | -a --text treat all files as text |
|
345 | -a --text treat all files as text | |
346 | -g --git use git extended diff format |
|
346 | -g --git use git extended diff format | |
347 | --nodates don't include dates in diff headers |
|
347 | --nodates don't include dates in diff headers | |
348 | -p --show-function show which function each change is in |
|
348 | -p --show-function show which function each change is in | |
349 | --reverse produce a diff that undoes the changes |
|
349 | --reverse produce a diff that undoes the changes | |
350 | -w --ignore-all-space ignore white space when comparing lines |
|
350 | -w --ignore-all-space ignore white space when comparing lines | |
351 | -b --ignore-space-change ignore changes in the amount of white space |
|
351 | -b --ignore-space-change ignore changes in the amount of white space | |
352 | -B --ignore-blank-lines ignore changes whose lines are all blank |
|
352 | -B --ignore-blank-lines ignore changes whose lines are all blank | |
353 | -U --unified number of lines of context to show |
|
353 | -U --unified number of lines of context to show | |
354 | --stat output diffstat-style summary of changes |
|
354 | --stat output diffstat-style summary of changes | |
355 | -I --include include names matching the given patterns |
|
355 | -I --include include names matching the given patterns | |
356 | -X --exclude exclude names matching the given patterns |
|
356 | -X --exclude exclude names matching the given patterns | |
357 |
|
357 | |||
358 | use "hg -v help diff" to show global options |
|
358 | use "hg -v help diff" to show global options | |
359 | hg status [OPTION]... [FILE]... |
|
359 | hg status [OPTION]... [FILE]... | |
360 |
|
360 | |||
361 | aliases: st |
|
361 | aliases: st | |
362 |
|
362 | |||
363 | show changed files in the working directory |
|
363 | show changed files in the working directory | |
364 |
|
364 | |||
365 | Show status of files in the repository. If names are given, only files |
|
365 | Show status of files in the repository. If names are given, only files | |
366 | that match are shown. Files that are clean or ignored or the source of a |
|
366 | that match are shown. Files that are clean or ignored or the source of a | |
367 | copy/move operation, are not listed unless -c/--clean, -i/--ignored, |
|
367 | copy/move operation, are not listed unless -c/--clean, -i/--ignored, | |
368 | -C/--copies or -A/--all are given. Unless options described with "show |
|
368 | -C/--copies or -A/--all are given. Unless options described with "show | |
369 | only ..." are given, the options -mardu are used. |
|
369 | only ..." are given, the options -mardu are used. | |
370 |
|
370 | |||
371 | Option -q/--quiet hides untracked (unknown and ignored) files unless |
|
371 | Option -q/--quiet hides untracked (unknown and ignored) files unless | |
372 | explicitly requested with -u/--unknown or -i/--ignored. |
|
372 | explicitly requested with -u/--unknown or -i/--ignored. | |
373 |
|
373 | |||
374 | NOTE: status may appear to disagree with diff if permissions have changed |
|
374 | NOTE: status may appear to disagree with diff if permissions have changed | |
375 | or a merge has occurred. The standard diff format does not report |
|
375 | or a merge has occurred. The standard diff format does not report | |
376 | permission changes and diff only reports changes relative to one merge |
|
376 | permission changes and diff only reports changes relative to one merge | |
377 | parent. |
|
377 | parent. | |
378 |
|
378 | |||
379 | If one revision is given, it is used as the base revision. If two |
|
379 | If one revision is given, it is used as the base revision. If two | |
380 | revisions are given, the differences between them are shown. The --change |
|
380 | revisions are given, the differences between them are shown. The --change | |
381 | option can also be used as a shortcut to list the changed files of a |
|
381 | option can also be used as a shortcut to list the changed files of a | |
382 | revision from its first parent. |
|
382 | revision from its first parent. | |
383 |
|
383 | |||
384 | The codes used to show the status of files are: |
|
384 | The codes used to show the status of files are: | |
385 |
|
385 | |||
386 | M = modified |
|
386 | M = modified | |
387 | A = added |
|
387 | A = added | |
388 | R = removed |
|
388 | R = removed | |
389 | C = clean |
|
389 | C = clean | |
390 | ! = missing (deleted by non-hg command, but still tracked) |
|
390 | ! = missing (deleted by non-hg command, but still tracked) | |
391 | ? = not tracked |
|
391 | ? = not tracked | |
392 | I = ignored |
|
392 | I = ignored | |
393 | = origin of the previous file listed as A (added) |
|
393 | = origin of the previous file listed as A (added) | |
394 |
|
394 | |||
395 | options: |
|
395 | options: | |
396 |
|
396 | |||
397 | -A --all show status of all files |
|
397 | -A --all show status of all files | |
398 | -m --modified show only modified files |
|
398 | -m --modified show only modified files | |
399 | -a --added show only added files |
|
399 | -a --added show only added files | |
400 | -r --removed show only removed files |
|
400 | -r --removed show only removed files | |
401 | -d --deleted show only deleted (but tracked) files |
|
401 | -d --deleted show only deleted (but tracked) files | |
402 | -c --clean show only files without changes |
|
402 | -c --clean show only files without changes | |
403 | -u --unknown show only unknown (not tracked) files |
|
403 | -u --unknown show only unknown (not tracked) files | |
404 | -i --ignored show only ignored files |
|
404 | -i --ignored show only ignored files | |
405 | -n --no-status hide status prefix |
|
405 | -n --no-status hide status prefix | |
406 | -C --copies show source of copied files |
|
406 | -C --copies show source of copied files | |
407 | -0 --print0 end filenames with NUL, for use with xargs |
|
407 | -0 --print0 end filenames with NUL, for use with xargs | |
408 | --rev show difference from revision |
|
408 | --rev show difference from revision | |
409 | --change list the changed files of a revision |
|
409 | --change list the changed files of a revision | |
410 | -I --include include names matching the given patterns |
|
410 | -I --include include names matching the given patterns | |
411 | -X --exclude exclude names matching the given patterns |
|
411 | -X --exclude exclude names matching the given patterns | |
412 |
|
412 | |||
413 | use "hg -v help status" to show global options |
|
413 | use "hg -v help status" to show global options | |
414 | hg status [OPTION]... [FILE]... |
|
414 | hg status [OPTION]... [FILE]... | |
415 |
|
415 | |||
416 | show changed files in the working directory |
|
416 | show changed files in the working directory | |
417 | hg: unknown command 'foo' |
|
417 | hg: unknown command 'foo' | |
418 | Mercurial Distributed SCM |
|
418 | Mercurial Distributed SCM | |
419 |
|
419 | |||
420 | basic commands: |
|
420 | basic commands: | |
421 |
|
421 | |||
422 | add add the specified files on the next commit |
|
422 | add add the specified files on the next commit | |
423 | annotate show changeset information by line for each file |
|
423 | annotate show changeset information by line for each file | |
424 | clone make a copy of an existing repository |
|
424 | clone make a copy of an existing repository | |
425 | commit commit the specified files or all outstanding changes |
|
425 | commit commit the specified files or all outstanding changes | |
426 | diff diff repository (or selected files) |
|
426 | diff diff repository (or selected files) | |
427 | export dump the header and diffs for one or more changesets |
|
427 | export dump the header and diffs for one or more changesets | |
428 | forget forget the specified files on the next commit |
|
428 | forget forget the specified files on the next commit | |
429 | init create a new repository in the given directory |
|
429 | init create a new repository in the given directory | |
430 | log show revision history of entire repository or files |
|
430 | log show revision history of entire repository or files | |
431 | merge merge working directory with another revision |
|
431 | merge merge working directory with another revision | |
432 | pull pull changes from the specified source |
|
432 | pull pull changes from the specified source | |
433 | push push changes to the specified destination |
|
433 | push push changes to the specified destination | |
434 | remove remove the specified files on the next commit |
|
434 | remove remove the specified files on the next commit | |
435 | serve export the repository via HTTP |
|
435 | serve export the repository via HTTP | |
436 | status show changed files in the working directory |
|
436 | status show changed files in the working directory | |
437 | summary summarize working directory state |
|
437 | summary summarize working directory state | |
438 | update update working directory |
|
438 | update update working directory | |
439 |
|
439 | |||
440 | use "hg help" for the full list of commands or "hg -v" for details |
|
440 | use "hg help" for the full list of commands or "hg -v" for details | |
441 | hg: unknown command 'skjdfks' |
|
441 | hg: unknown command 'skjdfks' | |
442 | Mercurial Distributed SCM |
|
442 | Mercurial Distributed SCM | |
443 |
|
443 | |||
444 | basic commands: |
|
444 | basic commands: | |
445 |
|
445 | |||
446 | add add the specified files on the next commit |
|
446 | add add the specified files on the next commit | |
447 | annotate show changeset information by line for each file |
|
447 | annotate show changeset information by line for each file | |
448 | clone make a copy of an existing repository |
|
448 | clone make a copy of an existing repository | |
449 | commit commit the specified files or all outstanding changes |
|
449 | commit commit the specified files or all outstanding changes | |
450 | diff diff repository (or selected files) |
|
450 | diff diff repository (or selected files) | |
451 | export dump the header and diffs for one or more changesets |
|
451 | export dump the header and diffs for one or more changesets | |
452 | forget forget the specified files on the next commit |
|
452 | forget forget the specified files on the next commit | |
453 | init create a new repository in the given directory |
|
453 | init create a new repository in the given directory | |
454 | log show revision history of entire repository or files |
|
454 | log show revision history of entire repository or files | |
455 | merge merge working directory with another revision |
|
455 | merge merge working directory with another revision | |
456 | pull pull changes from the specified source |
|
456 | pull pull changes from the specified source | |
457 | push push changes to the specified destination |
|
457 | push push changes to the specified destination | |
458 | remove remove the specified files on the next commit |
|
458 | remove remove the specified files on the next commit | |
459 | serve export the repository via HTTP |
|
459 | serve export the repository via HTTP | |
460 | status show changed files in the working directory |
|
460 | status show changed files in the working directory | |
461 | summary summarize working directory state |
|
461 | summary summarize working directory state | |
462 | update update working directory |
|
462 | update update working directory | |
463 |
|
463 | |||
464 | use "hg help" for the full list of commands or "hg -v" for details |
|
464 | use "hg help" for the full list of commands or "hg -v" for details | |
|
465 | %% test command with no help text | |||
|
466 | hg nohelp | |||
|
467 | ||||
|
468 | (no help text available) | |||
|
469 | ||||
|
470 | use "hg -v help nohelp" to show global options |
General Comments 0
You need to be logged in to leave comments.
Login now