| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 |
<meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" /> |
| 7 |
<title>hg bundle</title> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css" /> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<div class="document" id="hg-bundle"> |
| 12 |
<span id="hg-bundle-1"></span> |
| 13 |
<h1 class="title">hg bundle</h1> |
| 14 |
<h2 class="subtitle" id="create-a-bundle-file">create a bundle file</h2> |
| 15 |
|
| 16 |
<div class="contents htmlonly topic" id="contents"> |
| 17 |
<p class="topic-title"><a class="reference internal" href="#top">Contents</a></p> |
| 18 |
<ul class="simple"> |
| 19 |
<li><a class="reference internal" href="#synopsis" id="toc-entry-1">Synopsis</a></li> |
| 20 |
<li><a class="reference internal" href="#description" id="toc-entry-2">Description</a></li> |
| 21 |
<li><a class="reference internal" href="#options" id="toc-entry-3">Options</a></li> |
| 22 |
</ul> |
| 23 |
</div> |
| 24 |
<div class="section" id="synopsis"> |
| 25 |
<h1><a class="toc-backref" href="#contents">Synopsis</a></h1> |
| 26 |
<pre class="literal-block"> |
| 27 |
hg bundle [-f] [-t BUNDLESPEC] [-a] [-r REV]... [--base REV]... FILE [DEST]... |
| 28 |
</pre> |
| 29 |
</div> |
| 30 |
<div class="section" id="description"> |
| 31 |
<h1><a class="toc-backref" href="#contents">Description</a></h1> |
| 32 |
<p>Generate a bundle file containing data to be transferred to another |
| 33 |
repository.</p> |
| 34 |
<p>To create a bundle containing all changesets, use -a/--all |
| 35 |
(or --base null). Otherwise, hg assumes the destination will have |
| 36 |
all the nodes you specify with --base parameters. Otherwise, hg |
| 37 |
will assume the repository has all the nodes in destination, or |
| 38 |
default-push/default if no destination is specified, where destination |
| 39 |
is the repositories you provide through DEST option.</p> |
| 40 |
<p>You can change bundle format with the -t/--type option. See |
| 41 |
<a class="reference external" href="topic-bundlespec.html"><tt class="docutils literal">hg help bundlespec</tt></a> for documentation on this format. By default, |
| 42 |
the most appropriate format is used and compression defaults to |
| 43 |
bzip2.</p> |
| 44 |
<p>The bundle file can then be transferred using conventional means |
| 45 |
and applied to another repository with the unbundle or pull |
| 46 |
command. This is useful when direct push and pull are not |
| 47 |
available or when exporting an entire repository is undesirable.</p> |
| 48 |
<p>Applying bundles preserves all changeset contents including |
| 49 |
permissions, copy/rename information, and revision history.</p> |
| 50 |
<p>Returns 0 on success, 1 if no changes found.</p> |
| 51 |
</div> |
| 52 |
<div class="section" id="options"> |
| 53 |
<h1><a class="toc-backref" href="#contents">Options</a></h1> |
| 54 |
<table class="docutils option-list" frame="void" rules="none"> |
| 55 |
<col class="option" /> |
| 56 |
<col class="description" /> |
| 57 |
<tbody valign="top"> |
| 58 |
<tr><td class="option-group"> |
| 59 |
<kbd><span class="option">--exact</span></kbd></td> |
| 60 |
<td>compute the base from the revision specified</td></tr> |
| 61 |
<tr><td class="option-group"> |
| 62 |
<kbd><span class="option">-f</span>, <span class="option">--force</span></kbd></td> |
| 63 |
<td>run even when the destination is unrelated</td></tr> |
| 64 |
<tr><td class="option-group" colspan="2"> |
| 65 |
<kbd><span class="option">-r</span>, <span class="option">--rev <var><REV[+]></var></span></kbd></td> |
| 66 |
</tr> |
| 67 |
<tr><td> </td><td>a changeset intended to be added to the destination</td></tr> |
| 68 |
<tr><td class="option-group" colspan="2"> |
| 69 |
<kbd><span class="option">-b</span>, <span class="option">--branch <var><BRANCH[+]></var></span></kbd></td> |
| 70 |
</tr> |
| 71 |
<tr><td> </td><td>a specific branch you would like to bundle</td></tr> |
| 72 |
<tr><td class="option-group" colspan="2"> |
| 73 |
<kbd><span class="option">--base <var><REV[+]></var></span></kbd></td> |
| 74 |
</tr> |
| 75 |
<tr><td> </td><td>a base changeset assumed to be available at the destination</td></tr> |
| 76 |
<tr><td class="option-group"> |
| 77 |
<kbd><span class="option">-a</span>, <span class="option">--all</span></kbd></td> |
| 78 |
<td>bundle all changesets in the repository</td></tr> |
| 79 |
<tr><td class="option-group" colspan="2"> |
| 80 |
<kbd><span class="option">-t</span>, <span class="option">--type <var><TYPE></var></span></kbd></td> |
| 81 |
</tr> |
| 82 |
<tr><td> </td><td>bundle compression type to use (default: bzip2)</td></tr> |
| 83 |
<tr><td class="option-group" colspan="2"> |
| 84 |
<kbd><span class="option">-e</span>, <span class="option">--ssh <var><CMD></var></span></kbd></td> |
| 85 |
</tr> |
| 86 |
<tr><td> </td><td>specify ssh command to use</td></tr> |
| 87 |
<tr><td class="option-group" colspan="2"> |
| 88 |
<kbd><span class="option">--remotecmd <var><CMD></var></span></kbd></td> |
| 89 |
</tr> |
| 90 |
<tr><td> </td><td>specify hg command to run on the remote side</td></tr> |
| 91 |
<tr><td class="option-group"> |
| 92 |
<kbd><span class="option">--insecure</span></kbd></td> |
| 93 |
<td>do not verify server certificate (ignoring web.cacerts config)</td></tr> |
| 94 |
</tbody> |
| 95 |
</table> |
| 96 |
<p>[+] marked option can be specified multiple times</p> |
| 97 |
</div> |
| 98 |
</div> |
| 99 |
</body> |
| 100 |
</html> |