##// END OF EJS Templates
tests: fix up tests to cope with 6a0bc2dc9da6
Dirkjan Ochtman -
r7679:eb98218d default
parent child Browse files
Show More
@@ -1,274 +1,276 b''
1 adding a
1 adding a
2 adding b
2 adding b
3 updating working directory
3 updating working directory
4 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
4 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
5 pulling from ../b
5 pulling from ../b
6 searching for changes
6 searching for changes
7 warning: repository is unrelated
7 warning: repository is unrelated
8 adding changesets
8 adding changesets
9 adding manifests
9 adding manifests
10 adding file changes
10 adding file changes
11 added 1 changesets with 1 changes to 1 files (+1 heads)
11 added 1 changesets with 1 changes to 1 files (+1 heads)
12 (run 'hg heads' to see heads, 'hg merge' to merge)
12 (run 'hg heads' to see heads, 'hg merge' to merge)
13 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
13 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
14 (branch merge, don't forget to commit)
14 (branch merge, don't forget to commit)
15 %% -R/--repository
15 %% -R/--repository
16 changeset: 0:8580ff50825a
16 changeset: 0:8580ff50825a
17 tag: tip
17 tag: tip
18 user: test
18 user: test
19 date: Thu Jan 01 00:00:01 1970 +0000
19 date: Thu Jan 01 00:00:01 1970 +0000
20 summary: a
20 summary: a
21
21
22 changeset: 0:b6c483daf290
22 changeset: 0:b6c483daf290
23 tag: tip
23 tag: tip
24 user: test
24 user: test
25 date: Thu Jan 01 00:00:01 1970 +0000
25 date: Thu Jan 01 00:00:01 1970 +0000
26 summary: b
26 summary: b
27
27
28 %% implicit -R
28 %% implicit -R
29 0: a
29 0: a
30 0: a
30 0: a
31 abort: There is no Mercurial repository here (.hg not found)!
31 abort: There is no Mercurial repository here (.hg not found)!
32 abort: a/a not under root
32 abort: a/a not under root
33 abort: There is no Mercurial repository here (.hg not found)!
33 abort: There is no Mercurial repository here (.hg not found)!
34 %% abbrev of long option
34 %% abbrev of long option
35 changeset: 1:b6c483daf290
35 changeset: 1:b6c483daf290
36 tag: tip
36 tag: tip
37 parent: -1:000000000000
37 parent: -1:000000000000
38 user: test
38 user: test
39 date: Thu Jan 01 00:00:01 1970 +0000
39 date: Thu Jan 01 00:00:01 1970 +0000
40 summary: b
40 summary: b
41
41
42 %% earlygetopt with duplicate options (36d23de02da1)
42 %% earlygetopt with duplicate options (36d23de02da1)
43 changeset: 1:b6c483daf290
43 changeset: 1:b6c483daf290
44 tag: tip
44 tag: tip
45 parent: -1:000000000000
45 parent: -1:000000000000
46 user: test
46 user: test
47 date: Thu Jan 01 00:00:01 1970 +0000
47 date: Thu Jan 01 00:00:01 1970 +0000
48 summary: b
48 summary: b
49
49
50 changeset: 0:8580ff50825a
50 changeset: 0:8580ff50825a
51 tag: tip
51 tag: tip
52 user: test
52 user: test
53 date: Thu Jan 01 00:00:01 1970 +0000
53 date: Thu Jan 01 00:00:01 1970 +0000
54 summary: a
54 summary: a
55
55
56 %% earlygetopt short option without following space
56 %% earlygetopt short option without following space
57 0:b6c483daf290
57 0:b6c483daf290
58 %% earlygetopt with illegal abbreviations
58 %% earlygetopt with illegal abbreviations
59 abort: Option --config may not be abbreviated!
59 abort: Option --config may not be abbreviated!
60 abort: Option --cwd may not be abbreviated!
60 abort: Option --cwd may not be abbreviated!
61 abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo!
61 abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo!
62 abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo!
62 abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo!
63 abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo!
63 abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo!
64 abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo!
64 abort: Option -R has to be separated from other options (i.e. not -qR) and --repository may only be abbreviated as --repo!
65 %% --cwd
65 %% --cwd
66 changeset: 0:8580ff50825a
66 changeset: 0:8580ff50825a
67 tag: tip
67 tag: tip
68 user: test
68 user: test
69 date: Thu Jan 01 00:00:01 1970 +0000
69 date: Thu Jan 01 00:00:01 1970 +0000
70 summary: a
70 summary: a
71
71
72 %% -y/--noninteractive - just be sure it is parsed
72 %% -y/--noninteractive - just be sure it is parsed
73 0:8580ff50825a
73 0:8580ff50825a
74 0:8580ff50825a
74 0:8580ff50825a
75 %% -q/--quiet
75 %% -q/--quiet
76 0:8580ff50825a
76 0:8580ff50825a
77 0:b6c483daf290
77 0:b6c483daf290
78 0:8580ff50825a
78 0:8580ff50825a
79 1:b6c483daf290
79 1:b6c483daf290
80 %% -v/--verbose
80 %% -v/--verbose
81 changeset: 1:b6c483daf290
81 changeset: 1:b6c483daf290
82 tag: tip
82 tag: tip
83 parent: -1:000000000000
83 parent: -1:000000000000
84 user: test
84 user: test
85 date: Thu Jan 01 00:00:01 1970 +0000
85 date: Thu Jan 01 00:00:01 1970 +0000
86 files: b
86 files: b
87 description:
87 description:
88 b
88 b
89
89
90
90
91 changeset: 0:8580ff50825a
91 changeset: 0:8580ff50825a
92 user: test
92 user: test
93 date: Thu Jan 01 00:00:01 1970 +0000
93 date: Thu Jan 01 00:00:01 1970 +0000
94 files: a
94 files: a
95 description:
95 description:
96 a
96 a
97
97
98
98
99 changeset: 0:b6c483daf290
99 changeset: 0:b6c483daf290
100 tag: tip
100 tag: tip
101 user: test
101 user: test
102 date: Thu Jan 01 00:00:01 1970 +0000
102 date: Thu Jan 01 00:00:01 1970 +0000
103 files: b
103 files: b
104 description:
104 description:
105 b
105 b
106
106
107
107
108 %% --config
108 %% --config
109 quuxfoo
109 quuxfoo
110 abort: malformed --config option:
110 abort: malformed --config option:
111 abort: malformed --config option: a.b
111 abort: malformed --config option: a.b
112 abort: malformed --config option: a
112 abort: malformed --config option: a
113 abort: malformed --config option: a.=
113 abort: malformed --config option: a.=
114 abort: malformed --config option: .b=
114 abort: malformed --config option: .b=
115 %% --debug
115 %% --debug
116 changeset: 1:b6c483daf2907ce5825c0bb50f5716226281cc1a
116 changeset: 1:b6c483daf2907ce5825c0bb50f5716226281cc1a
117 tag: tip
117 tag: tip
118 parent: -1:0000000000000000000000000000000000000000
118 parent: -1:0000000000000000000000000000000000000000
119 parent: -1:0000000000000000000000000000000000000000
119 parent: -1:0000000000000000000000000000000000000000
120 manifest: 1:23226e7a252cacdc2d99e4fbdc3653441056de49
120 manifest: 1:23226e7a252cacdc2d99e4fbdc3653441056de49
121 user: test
121 user: test
122 date: Thu Jan 01 00:00:01 1970 +0000
122 date: Thu Jan 01 00:00:01 1970 +0000
123 files+: b
123 files+: b
124 extra: branch=default
124 extra: branch=default
125 description:
125 description:
126 b
126 b
127
127
128
128
129 changeset: 0:8580ff50825a50c8f716709acdf8de0deddcd6ab
129 changeset: 0:8580ff50825a50c8f716709acdf8de0deddcd6ab
130 parent: -1:0000000000000000000000000000000000000000
130 parent: -1:0000000000000000000000000000000000000000
131 parent: -1:0000000000000000000000000000000000000000
131 parent: -1:0000000000000000000000000000000000000000
132 manifest: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
132 manifest: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
133 user: test
133 user: test
134 date: Thu Jan 01 00:00:01 1970 +0000
134 date: Thu Jan 01 00:00:01 1970 +0000
135 files+: a
135 files+: a
136 extra: branch=default
136 extra: branch=default
137 description:
137 description:
138 a
138 a
139
139
140
140
141 %% --traceback
141 %% --traceback
142 Traceback (most recent call last):
142 Traceback (most recent call last):
143 %% --time
143 %% --time
144 Time: real x.x secs (user x.x+x.x sys x.x+x.x)
144 Time: real x.x secs (user x.x+x.x sys x.x+x.x)
145 %% --version
145 %% --version
146 Mercurial Distributed SCM (version xxx)
146 Mercurial Distributed SCM (version xxx)
147 %% -h/--help
147 %% -h/--help
148 Mercurial Distributed SCM
148 Mercurial Distributed SCM
149
149
150 list of commands:
150 list of commands:
151
151
152 add add the specified files on the next commit
152 add add the specified files on the next commit
153 addremove add all new files, delete all missing files
153 addremove add all new files, delete all missing files
154 annotate show changeset information per file line
154 annotate show changeset information per file line
155 archive create unversioned archive of a repository revision
155 archive create unversioned archive of a repository revision
156 backout reverse effect of earlier changeset
156 backout reverse effect of earlier changeset
157 bisect subdivision search of changesets
157 bisect subdivision search of changesets
158 branch set or show the current branch name
158 branch set or show the current branch name
159 branches list repository named branches
159 branches list repository named branches
160 bundle create a changegroup file
160 bundle create a changegroup file
161 cat output the current or given revision of files
161 cat output the current or given revision of files
162 clone make a copy of an existing repository
162 clone make a copy of an existing repository
163 commit commit the specified files or all outstanding changes
163 commit commit the specified files or all outstanding changes
164 copy mark files as copied for the next commit
164 copy mark files as copied for the next commit
165 diff diff repository (or selected files)
165 diff diff repository (or selected files)
166 export dump the header and diffs for one or more changesets
166 export dump the header and diffs for one or more changesets
167 grep search for a pattern in specified files and revisions
167 grep search for a pattern in specified files and revisions
168 heads show current repository heads or show branch heads
168 heads show current repository heads or show branch heads
169 help show help for a given topic or a help overview
169 help show help for a given topic or a help overview
170 identify identify the working copy or specified revision
170 identify identify the working copy or specified revision
171 import import an ordered set of patches
171 import import an ordered set of patches
172 incoming show new changesets found in source
172 incoming show new changesets found in source
173 init create a new repository in the given directory
173 init create a new repository in the given directory
174 locate locate files matching specific patterns
174 locate locate files matching specific patterns
175 log show revision history of entire repository or files
175 log show revision history of entire repository or files
176 manifest output the current or given revision of the project manifest
176 manifest output the current or given revision of the project manifest
177 merge merge working directory with another revision
177 merge merge working directory with another revision
178 outgoing show changesets not found in destination
178 outgoing show changesets not found in destination
179 parents show the parents of the working dir or revision
179 parents show the parents of the working dir or revision
180 paths show definition of symbolic path names
180 paths show definition of symbolic path names
181 pull pull changes from the specified source
181 pull pull changes from the specified source
182 push push changes to the specified destination
182 push push changes to the specified destination
183 recover roll back an interrupted transaction
183 recover roll back an interrupted transaction
184 remove remove the specified files on the next commit
184 remove remove the specified files on the next commit
185 rename rename files; equivalent of copy + remove
185 rename rename files; equivalent of copy + remove
186 resolve retry file merges from a merge or update
186 resolve retry file merges from a merge or update
187 revert restore individual files or dirs to an earlier state
187 revert restore individual files or dirs to an earlier state
188 rollback roll back the last transaction
188 rollback roll back the last transaction
189 root print the root (top) of the current working dir
189 root print the root (top) of the current working dir
190 serve export the repository via HTTP
190 serve export the repository via HTTP
191 showconfig show combined config settings from all hgrc files
191 showconfig show combined config settings from all hgrc files
192 status show changed files in the working directory
192 status show changed files in the working directory
193 tag add one or more tags for the current or given revision
193 tag add one or more tags for the current or given revision
194 tags list repository tags
194 tags list repository tags
195 tip show the tip revision
195 tip show the tip revision
196 unbundle apply one or more changegroup files
196 unbundle apply one or more changegroup files
197 update update working directory
197 update update working directory
198 verify verify the integrity of the repository
198 verify verify the integrity of the repository
199 version output version and copyright information
199 version output version and copyright information
200
200
201 additional help topics:
201 additional help topics:
202
202
203 dates Date Formats
203 dates Date Formats
204 patterns File Name Patterns
204 patterns File Name Patterns
205 environment Environment Variables
205 environment Environment Variables
206 revisions Specifying Single Revisions
206 revisions Specifying Single Revisions
207 multirevs Specifying Multiple Revisions
207 multirevs Specifying Multiple Revisions
208 diffs Diff Formats
208 diffs Diff Formats
209 templating Template Usage
209
210
210 use "hg -v help" to show aliases and global options
211 use "hg -v help" to show aliases and global options
211 Mercurial Distributed SCM
212 Mercurial Distributed SCM
212
213
213 list of commands:
214 list of commands:
214
215
215 add add the specified files on the next commit
216 add add the specified files on the next commit
216 addremove add all new files, delete all missing files
217 addremove add all new files, delete all missing files
217 annotate show changeset information per file line
218 annotate show changeset information per file line
218 archive create unversioned archive of a repository revision
219 archive create unversioned archive of a repository revision
219 backout reverse effect of earlier changeset
220 backout reverse effect of earlier changeset
220 bisect subdivision search of changesets
221 bisect subdivision search of changesets
221 branch set or show the current branch name
222 branch set or show the current branch name
222 branches list repository named branches
223 branches list repository named branches
223 bundle create a changegroup file
224 bundle create a changegroup file
224 cat output the current or given revision of files
225 cat output the current or given revision of files
225 clone make a copy of an existing repository
226 clone make a copy of an existing repository
226 commit commit the specified files or all outstanding changes
227 commit commit the specified files or all outstanding changes
227 copy mark files as copied for the next commit
228 copy mark files as copied for the next commit
228 diff diff repository (or selected files)
229 diff diff repository (or selected files)
229 export dump the header and diffs for one or more changesets
230 export dump the header and diffs for one or more changesets
230 grep search for a pattern in specified files and revisions
231 grep search for a pattern in specified files and revisions
231 heads show current repository heads or show branch heads
232 heads show current repository heads or show branch heads
232 help show help for a given topic or a help overview
233 help show help for a given topic or a help overview
233 identify identify the working copy or specified revision
234 identify identify the working copy or specified revision
234 import import an ordered set of patches
235 import import an ordered set of patches
235 incoming show new changesets found in source
236 incoming show new changesets found in source
236 init create a new repository in the given directory
237 init create a new repository in the given directory
237 locate locate files matching specific patterns
238 locate locate files matching specific patterns
238 log show revision history of entire repository or files
239 log show revision history of entire repository or files
239 manifest output the current or given revision of the project manifest
240 manifest output the current or given revision of the project manifest
240 merge merge working directory with another revision
241 merge merge working directory with another revision
241 outgoing show changesets not found in destination
242 outgoing show changesets not found in destination
242 parents show the parents of the working dir or revision
243 parents show the parents of the working dir or revision
243 paths show definition of symbolic path names
244 paths show definition of symbolic path names
244 pull pull changes from the specified source
245 pull pull changes from the specified source
245 push push changes to the specified destination
246 push push changes to the specified destination
246 recover roll back an interrupted transaction
247 recover roll back an interrupted transaction
247 remove remove the specified files on the next commit
248 remove remove the specified files on the next commit
248 rename rename files; equivalent of copy + remove
249 rename rename files; equivalent of copy + remove
249 resolve retry file merges from a merge or update
250 resolve retry file merges from a merge or update
250 revert restore individual files or dirs to an earlier state
251 revert restore individual files or dirs to an earlier state
251 rollback roll back the last transaction
252 rollback roll back the last transaction
252 root print the root (top) of the current working dir
253 root print the root (top) of the current working dir
253 serve export the repository via HTTP
254 serve export the repository via HTTP
254 showconfig show combined config settings from all hgrc files
255 showconfig show combined config settings from all hgrc files
255 status show changed files in the working directory
256 status show changed files in the working directory
256 tag add one or more tags for the current or given revision
257 tag add one or more tags for the current or given revision
257 tags list repository tags
258 tags list repository tags
258 tip show the tip revision
259 tip show the tip revision
259 unbundle apply one or more changegroup files
260 unbundle apply one or more changegroup files
260 update update working directory
261 update update working directory
261 verify verify the integrity of the repository
262 verify verify the integrity of the repository
262 version output version and copyright information
263 version output version and copyright information
263
264
264 additional help topics:
265 additional help topics:
265
266
266 dates Date Formats
267 dates Date Formats
267 patterns File Name Patterns
268 patterns File Name Patterns
268 environment Environment Variables
269 environment Environment Variables
269 revisions Specifying Single Revisions
270 revisions Specifying Single Revisions
270 multirevs Specifying Multiple Revisions
271 multirevs Specifying Multiple Revisions
271 diffs Diff Formats
272 diffs Diff Formats
273 templating Template Usage
272
274
273 use "hg -v help" to show aliases and global options
275 use "hg -v help" to show aliases and global options
274 %% not tested: --debugger
276 %% not tested: --debugger
@@ -1,336 +1,338 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 per file line
6 annotate show changeset information per file line
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 init create a new repository in the given directory
11 init create a new repository in the given directory
12 log show revision history of entire repository or files
12 log show revision history of entire repository or files
13 merge merge working directory with another revision
13 merge merge working directory with another revision
14 parents show the parents of the working dir or revision
14 parents show the parents of the working dir or 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 update update working directory
20 update update working directory
21
21
22 use "hg help" for the full list of commands or "hg -v" for details
22 use "hg help" for the full list of commands or "hg -v" for details
23 add add the specified files on the next commit
23 add add the specified files on the next commit
24 annotate show changeset information per file line
24 annotate show changeset information per file line
25 clone make a copy of an existing repository
25 clone make a copy of an existing repository
26 commit commit the specified files or all outstanding changes
26 commit commit the specified files or all outstanding changes
27 diff diff repository (or selected files)
27 diff diff repository (or selected files)
28 export dump the header and diffs for one or more changesets
28 export dump the header and diffs for one or more changesets
29 init create a new repository in the given directory
29 init create a new repository in the given directory
30 log show revision history of entire repository or files
30 log show revision history of entire repository or files
31 merge merge working directory with another revision
31 merge merge working directory with another revision
32 parents show the parents of the working dir or revision
32 parents show the parents of the working dir or revision
33 pull pull changes from the specified source
33 pull pull changes from the specified source
34 push push changes to the specified destination
34 push push changes to the specified destination
35 remove remove the specified files on the next commit
35 remove remove the specified files on the next commit
36 serve export the repository via HTTP
36 serve export the repository via HTTP
37 status show changed files in the working directory
37 status show changed files in the working directory
38 update update working directory
38 update update working directory
39 Mercurial Distributed SCM
39 Mercurial Distributed SCM
40
40
41 list of commands:
41 list of commands:
42
42
43 add add the specified files on the next commit
43 add add the specified files on the next commit
44 addremove add all new files, delete all missing files
44 addremove add all new files, delete all missing files
45 annotate show changeset information per file line
45 annotate show changeset information per file line
46 archive create unversioned archive of a repository revision
46 archive create unversioned archive of a repository revision
47 backout reverse effect of earlier changeset
47 backout reverse effect of earlier changeset
48 bisect subdivision search of changesets
48 bisect subdivision search of changesets
49 branch set or show the current branch name
49 branch set or show the current branch name
50 branches list repository named branches
50 branches list repository named branches
51 bundle create a changegroup file
51 bundle create a changegroup file
52 cat output the current or given revision of files
52 cat output the current or given revision of files
53 clone make a copy of an existing repository
53 clone make a copy of an existing repository
54 commit commit the specified files or all outstanding changes
54 commit commit the specified files or all outstanding changes
55 copy mark files as copied for the next commit
55 copy mark files as copied for the next commit
56 diff diff repository (or selected files)
56 diff diff repository (or selected files)
57 export dump the header and diffs for one or more changesets
57 export dump the header and diffs for one or more changesets
58 grep search for a pattern in specified files and revisions
58 grep search for a pattern in specified files and revisions
59 heads show current repository heads or show branch heads
59 heads show current repository heads or show branch heads
60 help show help for a given topic or a help overview
60 help show help for a given topic or a help overview
61 identify identify the working copy or specified revision
61 identify identify the working copy or specified revision
62 import import an ordered set of patches
62 import import an ordered set of patches
63 incoming show new changesets found in source
63 incoming show new changesets found in source
64 init create a new repository in the given directory
64 init create a new repository in the given directory
65 locate locate files matching specific patterns
65 locate locate files matching specific patterns
66 log show revision history of entire repository or files
66 log show revision history of entire repository or files
67 manifest output the current or given revision of the project manifest
67 manifest output the current or given revision of the project manifest
68 merge merge working directory with another revision
68 merge merge working directory with another revision
69 outgoing show changesets not found in destination
69 outgoing show changesets not found in destination
70 parents show the parents of the working dir or revision
70 parents show the parents of the working dir or revision
71 paths show definition of symbolic path names
71 paths show definition of symbolic path names
72 pull pull changes from the specified source
72 pull pull changes from the specified source
73 push push changes to the specified destination
73 push push changes to the specified destination
74 recover roll back an interrupted transaction
74 recover roll back an interrupted transaction
75 remove remove the specified files on the next commit
75 remove remove the specified files on the next commit
76 rename rename files; equivalent of copy + remove
76 rename rename files; equivalent of copy + remove
77 resolve retry file merges from a merge or update
77 resolve retry file merges from a merge or update
78 revert restore individual files or dirs to an earlier state
78 revert restore individual files or dirs to an earlier state
79 rollback roll back the last transaction
79 rollback roll back the last transaction
80 root print the root (top) of the current working dir
80 root print the root (top) of the current working dir
81 serve export the repository via HTTP
81 serve export the repository via HTTP
82 showconfig show combined config settings from all hgrc files
82 showconfig show combined config settings from all hgrc files
83 status show changed files in the working directory
83 status show changed files in the working directory
84 tag add one or more tags for the current or given revision
84 tag add one or more tags for the current or given revision
85 tags list repository tags
85 tags list repository tags
86 tip show the tip revision
86 tip show the tip revision
87 unbundle apply one or more changegroup files
87 unbundle apply one or more changegroup files
88 update update working directory
88 update update working directory
89 verify verify the integrity of the repository
89 verify verify the integrity of the repository
90 version output version and copyright information
90 version output version and copyright information
91
91
92 additional help topics:
92 additional help topics:
93
93
94 dates Date Formats
94 dates Date Formats
95 patterns File Name Patterns
95 patterns File Name Patterns
96 environment Environment Variables
96 environment Environment Variables
97 revisions Specifying Single Revisions
97 revisions Specifying Single Revisions
98 multirevs Specifying Multiple Revisions
98 multirevs Specifying Multiple Revisions
99 diffs Diff Formats
99 diffs Diff Formats
100 templating Template Usage
100
101
101 use "hg -v help" to show aliases and global options
102 use "hg -v help" to show aliases and global options
102 add add the specified files on the next commit
103 add add the specified files on the next commit
103 addremove add all new files, delete all missing files
104 addremove add all new files, delete all missing files
104 annotate show changeset information per file line
105 annotate show changeset information per file line
105 archive create unversioned archive of a repository revision
106 archive create unversioned archive of a repository revision
106 backout reverse effect of earlier changeset
107 backout reverse effect of earlier changeset
107 bisect subdivision search of changesets
108 bisect subdivision search of changesets
108 branch set or show the current branch name
109 branch set or show the current branch name
109 branches list repository named branches
110 branches list repository named branches
110 bundle create a changegroup file
111 bundle create a changegroup file
111 cat output the current or given revision of files
112 cat output the current or given revision of files
112 clone make a copy of an existing repository
113 clone make a copy of an existing repository
113 commit commit the specified files or all outstanding changes
114 commit commit the specified files or all outstanding changes
114 copy mark files as copied for the next commit
115 copy mark files as copied for the next commit
115 diff diff repository (or selected files)
116 diff diff repository (or selected files)
116 export dump the header and diffs for one or more changesets
117 export dump the header and diffs for one or more changesets
117 grep search for a pattern in specified files and revisions
118 grep search for a pattern in specified files and revisions
118 heads show current repository heads or show branch heads
119 heads show current repository heads or show branch heads
119 help show help for a given topic or a help overview
120 help show help for a given topic or a help overview
120 identify identify the working copy or specified revision
121 identify identify the working copy or specified revision
121 import import an ordered set of patches
122 import import an ordered set of patches
122 incoming show new changesets found in source
123 incoming show new changesets found in source
123 init create a new repository in the given directory
124 init create a new repository in the given directory
124 locate locate files matching specific patterns
125 locate locate files matching specific patterns
125 log show revision history of entire repository or files
126 log show revision history of entire repository or files
126 manifest output the current or given revision of the project manifest
127 manifest output the current or given revision of the project manifest
127 merge merge working directory with another revision
128 merge merge working directory with another revision
128 outgoing show changesets not found in destination
129 outgoing show changesets not found in destination
129 parents show the parents of the working dir or revision
130 parents show the parents of the working dir or revision
130 paths show definition of symbolic path names
131 paths show definition of symbolic path names
131 pull pull changes from the specified source
132 pull pull changes from the specified source
132 push push changes to the specified destination
133 push push changes to the specified destination
133 recover roll back an interrupted transaction
134 recover roll back an interrupted transaction
134 remove remove the specified files on the next commit
135 remove remove the specified files on the next commit
135 rename rename files; equivalent of copy + remove
136 rename rename files; equivalent of copy + remove
136 resolve retry file merges from a merge or update
137 resolve retry file merges from a merge or update
137 revert restore individual files or dirs to an earlier state
138 revert restore individual files or dirs to an earlier state
138 rollback roll back the last transaction
139 rollback roll back the last transaction
139 root print the root (top) of the current working dir
140 root print the root (top) of the current working dir
140 serve export the repository via HTTP
141 serve export the repository via HTTP
141 showconfig show combined config settings from all hgrc files
142 showconfig show combined config settings from all hgrc files
142 status show changed files in the working directory
143 status show changed files in the working directory
143 tag add one or more tags for the current or given revision
144 tag add one or more tags for the current or given revision
144 tags list repository tags
145 tags list repository tags
145 tip show the tip revision
146 tip show the tip revision
146 unbundle apply one or more changegroup files
147 unbundle apply one or more changegroup files
147 update update working directory
148 update update working directory
148 verify verify the integrity of the repository
149 verify verify the integrity of the repository
149 version output version and copyright information
150 version output version and copyright information
150
151
151 additional help topics:
152 additional help topics:
152
153
153 dates Date Formats
154 dates Date Formats
154 patterns File Name Patterns
155 patterns File Name Patterns
155 environment Environment Variables
156 environment Environment Variables
156 revisions Specifying Single Revisions
157 revisions Specifying Single Revisions
157 multirevs Specifying Multiple Revisions
158 multirevs Specifying Multiple Revisions
158 diffs Diff Formats
159 diffs Diff Formats
160 templating Template Usage
159 hg add [OPTION]... [FILE]...
161 hg add [OPTION]... [FILE]...
160
162
161 add the specified files on the next commit
163 add the specified files on the next commit
162
164
163 Schedule files to be version controlled and added to the repository.
165 Schedule files to be version controlled and added to the repository.
164
166
165 The files will be added to the repository at the next commit. To
167 The files will be added to the repository at the next commit. To
166 undo an add before that, see hg revert.
168 undo an add before that, see hg revert.
167
169
168 If no names are given, add all files in the repository.
170 If no names are given, add all files in the repository.
169
171
170 options:
172 options:
171
173
172 -I --include include names matching the given patterns
174 -I --include include names matching the given patterns
173 -X --exclude exclude names matching the given patterns
175 -X --exclude exclude names matching the given patterns
174 -n --dry-run do not perform actions, just print output
176 -n --dry-run do not perform actions, just print output
175
177
176 use "hg -v help add" to show global options
178 use "hg -v help add" to show global options
177 hg add: option --skjdfks not recognized
179 hg add: option --skjdfks not recognized
178 hg add [OPTION]... [FILE]...
180 hg add [OPTION]... [FILE]...
179
181
180 add the specified files on the next commit
182 add the specified files on the next commit
181
183
182 Schedule files to be version controlled and added to the repository.
184 Schedule files to be version controlled and added to the repository.
183
185
184 The files will be added to the repository at the next commit. To
186 The files will be added to the repository at the next commit. To
185 undo an add before that, see hg revert.
187 undo an add before that, see hg revert.
186
188
187 If no names are given, add all files in the repository.
189 If no names are given, add all files in the repository.
188
190
189 options:
191 options:
190
192
191 -I --include include names matching the given patterns
193 -I --include include names matching the given patterns
192 -X --exclude exclude names matching the given patterns
194 -X --exclude exclude names matching the given patterns
193 -n --dry-run do not perform actions, just print output
195 -n --dry-run do not perform actions, just print output
194
196
195 use "hg -v help add" to show global options
197 use "hg -v help add" to show global options
196 hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...
198 hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...
197
199
198 diff repository (or selected files)
200 diff repository (or selected files)
199
201
200 Show differences between revisions for the specified files.
202 Show differences between revisions for the specified files.
201
203
202 Differences between files are shown using the unified diff format.
204 Differences between files are shown using the unified diff format.
203
205
204 NOTE: diff may generate unexpected results for merges, as it will
206 NOTE: diff may generate unexpected results for merges, as it will
205 default to comparing against the working directory's first parent
207 default to comparing against the working directory's first parent
206 changeset if no revisions are specified.
208 changeset if no revisions are specified.
207
209
208 When two revision arguments are given, then changes are shown
210 When two revision arguments are given, then changes are shown
209 between those revisions. If only one revision is specified then
211 between those revisions. If only one revision is specified then
210 that revision is compared to the working directory, and, when no
212 that revision is compared to the working directory, and, when no
211 revisions are specified, the working directory files are compared
213 revisions are specified, the working directory files are compared
212 to its parent.
214 to its parent.
213
215
214 Without the -a option, diff will avoid generating diffs of files
216 Without the -a option, diff will avoid generating diffs of files
215 it detects as binary. With -a, diff will generate a diff anyway,
217 it detects as binary. With -a, diff will generate a diff anyway,
216 probably with undesirable results.
218 probably with undesirable results.
217
219
218 Use the --git option to generate diffs in the git extended diff
220 Use the --git option to generate diffs in the git extended diff
219 format. Read the diffs help topic for more information.
221 format. Read the diffs help topic for more information.
220
222
221 options:
223 options:
222
224
223 -r --rev revision
225 -r --rev revision
224 -c --change change made by revision
226 -c --change change made by revision
225 -a --text treat all files as text
227 -a --text treat all files as text
226 -g --git use git extended diff format
228 -g --git use git extended diff format
227 --nodates don't include dates in diff headers
229 --nodates don't include dates in diff headers
228 -p --show-function show which function each change is in
230 -p --show-function show which function each change is in
229 -w --ignore-all-space ignore white space when comparing lines
231 -w --ignore-all-space ignore white space when comparing lines
230 -b --ignore-space-change ignore changes in the amount of white space
232 -b --ignore-space-change ignore changes in the amount of white space
231 -B --ignore-blank-lines ignore changes whose lines are all blank
233 -B --ignore-blank-lines ignore changes whose lines are all blank
232 -U --unified number of lines of context to show
234 -U --unified number of lines of context to show
233 -I --include include names matching the given patterns
235 -I --include include names matching the given patterns
234 -X --exclude exclude names matching the given patterns
236 -X --exclude exclude names matching the given patterns
235
237
236 use "hg -v help diff" to show global options
238 use "hg -v help diff" to show global options
237 hg status [OPTION]... [FILE]...
239 hg status [OPTION]... [FILE]...
238
240
239 aliases: st
241 aliases: st
240
242
241 show changed files in the working directory
243 show changed files in the working directory
242
244
243 Show status of files in the repository. If names are given, only
245 Show status of files in the repository. If names are given, only
244 files that match are shown. Files that are clean or ignored or
246 files that match are shown. Files that are clean or ignored or
245 source of a copy/move operation, are not listed unless -c (clean),
247 source of a copy/move operation, are not listed unless -c (clean),
246 -i (ignored), -C (copies) or -A is given. Unless options described
248 -i (ignored), -C (copies) or -A is given. Unless options described
247 with "show only ..." are given, the options -mardu are used.
249 with "show only ..." are given, the options -mardu are used.
248
250
249 Option -q/--quiet hides untracked (unknown and ignored) files
251 Option -q/--quiet hides untracked (unknown and ignored) files
250 unless explicitly requested with -u/--unknown or -i/-ignored.
252 unless explicitly requested with -u/--unknown or -i/-ignored.
251
253
252 NOTE: status may appear to disagree with diff if permissions have
254 NOTE: status may appear to disagree with diff if permissions have
253 changed or a merge has occurred. The standard diff format does not
255 changed or a merge has occurred. The standard diff format does not
254 report permission changes and diff only reports changes relative
256 report permission changes and diff only reports changes relative
255 to one merge parent.
257 to one merge parent.
256
258
257 If one revision is given, it is used as the base revision.
259 If one revision is given, it is used as the base revision.
258 If two revisions are given, the difference between them is shown.
260 If two revisions are given, the difference between them is shown.
259
261
260 The codes used to show the status of files are:
262 The codes used to show the status of files are:
261 M = modified
263 M = modified
262 A = added
264 A = added
263 R = removed
265 R = removed
264 C = clean
266 C = clean
265 ! = deleted, but still tracked
267 ! = deleted, but still tracked
266 ? = not tracked
268 ? = not tracked
267 I = ignored
269 I = ignored
268 = the previous added file was copied from here
270 = the previous added file was copied from here
269
271
270 options:
272 options:
271
273
272 -A --all show status of all files
274 -A --all show status of all files
273 -m --modified show only modified files
275 -m --modified show only modified files
274 -a --added show only added files
276 -a --added show only added files
275 -r --removed show only removed files
277 -r --removed show only removed files
276 -d --deleted show only deleted (but tracked) files
278 -d --deleted show only deleted (but tracked) files
277 -c --clean show only files without changes
279 -c --clean show only files without changes
278 -u --unknown show only unknown (not tracked) files
280 -u --unknown show only unknown (not tracked) files
279 -i --ignored show only ignored files
281 -i --ignored show only ignored files
280 -n --no-status hide status prefix
282 -n --no-status hide status prefix
281 -C --copies show source of copied files
283 -C --copies show source of copied files
282 -0 --print0 end filenames with NUL, for use with xargs
284 -0 --print0 end filenames with NUL, for use with xargs
283 --rev show difference from revision
285 --rev show difference from revision
284 -I --include include names matching the given patterns
286 -I --include include names matching the given patterns
285 -X --exclude exclude names matching the given patterns
287 -X --exclude exclude names matching the given patterns
286
288
287 use "hg -v help status" to show global options
289 use "hg -v help status" to show global options
288 hg status [OPTION]... [FILE]...
290 hg status [OPTION]... [FILE]...
289
291
290 show changed files in the working directory
292 show changed files in the working directory
291 hg: unknown command 'foo'
293 hg: unknown command 'foo'
292 Mercurial Distributed SCM
294 Mercurial Distributed SCM
293
295
294 basic commands:
296 basic commands:
295
297
296 add add the specified files on the next commit
298 add add the specified files on the next commit
297 annotate show changeset information per file line
299 annotate show changeset information per file line
298 clone make a copy of an existing repository
300 clone make a copy of an existing repository
299 commit commit the specified files or all outstanding changes
301 commit commit the specified files or all outstanding changes
300 diff diff repository (or selected files)
302 diff diff repository (or selected files)
301 export dump the header and diffs for one or more changesets
303 export dump the header and diffs for one or more changesets
302 init create a new repository in the given directory
304 init create a new repository in the given directory
303 log show revision history of entire repository or files
305 log show revision history of entire repository or files
304 merge merge working directory with another revision
306 merge merge working directory with another revision
305 parents show the parents of the working dir or revision
307 parents show the parents of the working dir or revision
306 pull pull changes from the specified source
308 pull pull changes from the specified source
307 push push changes to the specified destination
309 push push changes to the specified destination
308 remove remove the specified files on the next commit
310 remove remove the specified files on the next commit
309 serve export the repository via HTTP
311 serve export the repository via HTTP
310 status show changed files in the working directory
312 status show changed files in the working directory
311 update update working directory
313 update update working directory
312
314
313 use "hg help" for the full list of commands or "hg -v" for details
315 use "hg help" for the full list of commands or "hg -v" for details
314 hg: unknown command 'skjdfks'
316 hg: unknown command 'skjdfks'
315 Mercurial Distributed SCM
317 Mercurial Distributed SCM
316
318
317 basic commands:
319 basic commands:
318
320
319 add add the specified files on the next commit
321 add add the specified files on the next commit
320 annotate show changeset information per file line
322 annotate show changeset information per file line
321 clone make a copy of an existing repository
323 clone make a copy of an existing repository
322 commit commit the specified files or all outstanding changes
324 commit commit the specified files or all outstanding changes
323 diff diff repository (or selected files)
325 diff diff repository (or selected files)
324 export dump the header and diffs for one or more changesets
326 export dump the header and diffs for one or more changesets
325 init create a new repository in the given directory
327 init create a new repository in the given directory
326 log show revision history of entire repository or files
328 log show revision history of entire repository or files
327 merge merge working directory with another revision
329 merge merge working directory with another revision
328 parents show the parents of the working dir or revision
330 parents show the parents of the working dir or revision
329 pull pull changes from the specified source
331 pull pull changes from the specified source
330 push push changes to the specified destination
332 push push changes to the specified destination
331 remove remove the specified files on the next commit
333 remove remove the specified files on the next commit
332 serve export the repository via HTTP
334 serve export the repository via HTTP
333 status show changed files in the working directory
335 status show changed files in the working directory
334 update update working directory
336 update update working directory
335
337
336 use "hg help" for the full list of commands or "hg -v" for details
338 use "hg help" for the full list of commands or "hg -v" for details
General Comments 0
You need to be logged in to leave comments. Login now