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