##// END OF EJS Templates
commands: update help for "bundle"...
Gregory Szorc -
r31794:54b1af73 default
parent child Browse files
Show More
@@ -1281,12 +1281,11 b' def branches(ui, repo, active=False, clo'
1281 1281 ('a', 'all', None, _('bundle all changesets in the repository')),
1282 1282 ('t', 'type', 'bzip2', _('bundle compression type to use'), _('TYPE')),
1283 1283 ] + remoteopts,
1284 _('[-f] [-t TYPE] [-a] [-r REV]... [--base REV]... FILE [DEST]'))
1284 _('[-f] [-t BUNDLESPEC] [-a] [-r REV]... [--base REV]... FILE [DEST]'))
1285 1285 def bundle(ui, repo, fname, dest=None, **opts):
1286 """create a changegroup file
1287
1288 Generate a changegroup file collecting changesets to be added
1289 to a repository.
1286 """create a bundle file
1287
1288 Generate a bundle file containing data to be added to a repository.
1290 1289
1291 1290 To create a bundle containing all changesets, use -a/--all
1292 1291 (or --base null). Otherwise, hg assumes the destination will have
@@ -1294,11 +1293,10 b' def bundle(ui, repo, fname, dest=None, *'
1294 1293 will assume the repository has all the nodes in destination, or
1295 1294 default-push/default if no destination is specified.
1296 1295
1297 You can change bundle format with the -t/--type option. You can
1298 specify a compression, a bundle version or both using a dash
1299 (comp-version). The available compression methods are: none, bzip2,
1300 and gzip (by default, bundles are compressed using bzip2). The
1301 available formats are: v1, v2 (default to most suitable).
1296 You can change bundle format with the -t/--type option. See
1297 :hg:`help bundlespec` for documentation on this format. By default,
1298 the most appropriate format is used and compression defaults to
1299 bzip2.
1302 1300
1303 1301 The bundle file can then be transferred using conventional means
1304 1302 and applied to another repository with the unbundle or pull
@@ -1323,7 +1321,7 b' def bundle(ui, repo, fname, dest=None, *'
1323 1321 repo, bundletype, strict=False)
1324 1322 except error.UnsupportedBundleSpecification as e:
1325 1323 raise error.Abort(str(e),
1326 hint=_("see 'hg help bundle' for supported "
1324 hint=_("see 'hg help bundlespec' for supported "
1327 1325 "values for --type"))
1328 1326
1329 1327 # Packed bundles are a pseudo bundle format for now.
@@ -40,12 +40,12 b' Unknown compression type is rejected'
40 40 $ hg -q pull ../b1
41 41 $ hg bundle -a -t unknown out.hg
42 42 abort: unknown is not a recognized bundle specification
43 (see 'hg help bundle' for supported values for --type)
43 (see 'hg help bundlespec' for supported values for --type)
44 44 [255]
45 45
46 46 $ hg bundle -a -t unknown-v2 out.hg
47 47 abort: unknown compression is not supported
48 (see 'hg help bundle' for supported values for --type)
48 (see 'hg help bundlespec' for supported values for --type)
49 49 [255]
50 50
51 51 $ cd ..
@@ -193,7 +193,7 b' zstd-v1 always fails'
193 193
194 194 $ hg -R tzstd bundle -a -t zstd-v1 zstd-v1
195 195 abort: compression engine zstd is not supported on v1 bundles
196 (see 'hg help bundle' for supported values for --type)
196 (see 'hg help bundlespec' for supported values for --type)
197 197 [255]
198 198
199 199 #else
@@ -222,6 +222,6 b' test invalid bundle type'
222 222 $ cd t1
223 223 $ hg bundle -a -t garbage ../bgarbage
224 224 abort: garbage is not a recognized bundle specification
225 (see 'hg help bundle' for supported values for --type)
225 (see 'hg help bundlespec' for supported values for --type)
226 226 [255]
227 227 $ cd ..
@@ -296,7 +296,7 b' Testing -h/--help:'
296 296 bookmarks create a new bookmark or list existing bookmarks
297 297 branch set or show the current branch name
298 298 branches list repository named branches
299 bundle create a changegroup file
299 bundle create a bundle file
300 300 cat output the current or given revision of files
301 301 clone make a copy of an existing repository
302 302 commit commit the specified files or all outstanding changes
@@ -380,7 +380,7 b' Testing -h/--help:'
380 380 bookmarks create a new bookmark or list existing bookmarks
381 381 branch set or show the current branch name
382 382 branches list repository named branches
383 bundle create a changegroup file
383 bundle create a bundle file
384 384 cat output the current or given revision of files
385 385 clone make a copy of an existing repository
386 386 commit commit the specified files or all outstanding changes
@@ -58,7 +58,7 b' Short help:'
58 58 bookmarks create a new bookmark or list existing bookmarks
59 59 branch set or show the current branch name
60 60 branches list repository named branches
61 bundle create a changegroup file
61 bundle create a bundle file
62 62 cat output the current or given revision of files
63 63 clone make a copy of an existing repository
64 64 commit commit the specified files or all outstanding changes
@@ -136,7 +136,7 b' Short help:'
136 136 bookmarks create a new bookmark or list existing bookmarks
137 137 branch set or show the current branch name
138 138 branches list repository named branches
139 bundle create a changegroup file
139 bundle create a bundle file
140 140 cat output the current or given revision of files
141 141 clone make a copy of an existing repository
142 142 commit commit the specified files or all outstanding changes
@@ -781,7 +781,7 b' Test that default list of commands omits'
781 781 bookmarks create a new bookmark or list existing bookmarks
782 782 branch set or show the current branch name
783 783 branches list repository named branches
784 bundle create a changegroup file
784 bundle create a bundle file
785 785 cat output the current or given revision of files
786 786 clone make a copy of an existing repository
787 787 commit commit the specified files or all outstanding changes
@@ -2246,7 +2246,7 b' Dish up an empty repo; serve it cold.'
2246 2246 bundle
2247 2247 </a>
2248 2248 </td><td>
2249 create a changegroup file
2249 create a bundle file
2250 2250 </td></tr>
2251 2251 <tr><td>
2252 2252 <a href="/help/cat">
@@ -1443,7 +1443,7 b' help/ shows help topics'
1443 1443 "topic": "branches"
1444 1444 },
1445 1445 {
1446 "summary": "create a changegroup file",
1446 "summary": "create a bundle file",
1447 1447 "topic": "bundle"
1448 1448 },
1449 1449 {
General Comments 0
You need to be logged in to leave comments. Login now