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