| 1 |
.TH HG ARCHIVE "" "" "" |
| 2 |
.SH NAME |
| 3 |
hg archive \- create an unversioned archive of a repository revision |
| 4 |
.\" Man page generated from reStructuredText. |
| 5 |
. |
| 6 |
.SH SYNOPSIS |
| 7 |
.sp |
| 8 |
.nf |
| 9 |
.ft C |
| 10 |
hg archive [OPTION]... DEST |
| 11 |
.ft P |
| 12 |
.fi |
| 13 |
.SH DESCRIPTION |
| 14 |
.sp |
| 15 |
By default, the revision used is the parent of the working |
| 16 |
directory; use \-r/\-\-rev to specify a different revision. |
| 17 |
.sp |
| 18 |
The archive type is automatically detected based on file |
| 19 |
extension (to override, use \-t/\-\-type). |
| 20 |
.sp |
| 21 |
Examples: |
| 22 |
.INDENT 0.0 |
| 23 |
.IP \(bu 2 |
| 24 |
. |
| 25 |
create a zip file containing the 1.0 release: |
| 26 |
.sp |
| 27 |
.nf |
| 28 |
.ft C |
| 29 |
hg archive \-r 1.0 project\-1.0.zip |
| 30 |
.ft P |
| 31 |
.fi |
| 32 |
.IP \(bu 2 |
| 33 |
. |
| 34 |
create a tarball excluding .hg files: |
| 35 |
.sp |
| 36 |
.nf |
| 37 |
.ft C |
| 38 |
hg archive project.tar.gz \-X ".hg*" |
| 39 |
.ft P |
| 40 |
.fi |
| 41 |
.UNINDENT |
| 42 |
.sp |
| 43 |
Valid types are: |
| 44 |
.INDENT 0.0 |
| 45 |
.TP |
| 46 |
.B \fBfiles\fP |
| 47 |
.sp |
| 48 |
a directory full of files (default) |
| 49 |
.TP |
| 50 |
.B \fBtar\fP |
| 51 |
.sp |
| 52 |
tar archive, uncompressed |
| 53 |
.TP |
| 54 |
.B \fBtbz2\fP |
| 55 |
.sp |
| 56 |
tar archive, compressed using bzip2 |
| 57 |
.TP |
| 58 |
.B \fBtgz\fP |
| 59 |
.sp |
| 60 |
tar archive, compressed using gzip |
| 61 |
.TP |
| 62 |
.B \fBtxz\fP |
| 63 |
.sp |
| 64 |
tar archive, compressed using lzma (only in Python 3) |
| 65 |
.TP |
| 66 |
.B \fBuzip\fP |
| 67 |
.sp |
| 68 |
zip archive, uncompressed |
| 69 |
.TP |
| 70 |
.B \fBzip\fP |
| 71 |
.sp |
| 72 |
zip archive, compressed using deflate |
| 73 |
.UNINDENT |
| 74 |
.sp |
| 75 |
The exact name of the destination archive or directory is given |
| 76 |
using a format string; see \%\fBhg help export\fP\: for details. |
| 77 |
.sp |
| 78 |
Each member added to an archive file has a directory prefix |
| 79 |
prepended. Use \-p/\-\-prefix to specify a format string for the |
| 80 |
prefix. The default is the basename of the archive, with suffixes |
| 81 |
removed. |
| 82 |
.sp |
| 83 |
Returns 0 on success. |
| 84 |
.SH OPTIONS |
| 85 |
.INDENT 0.0 |
| 86 |
.TP |
| 87 |
.B \-\-no\-decode |
| 88 |
. |
| 89 |
do not pass files through decoders |
| 90 |
.TP |
| 91 |
.BI \-p, \-\-prefix \ <PREFIX> |
| 92 |
. |
| 93 |
directory prefix for files in archive |
| 94 |
.TP |
| 95 |
.BI \-r, \-\-rev \ <REV> |
| 96 |
. |
| 97 |
revision to distribute |
| 98 |
.TP |
| 99 |
.BI \-t, \-\-type \ <TYPE> |
| 100 |
. |
| 101 |
type of distribution to create |
| 102 |
.TP |
| 103 |
.B \-S, \-\-subrepos |
| 104 |
. |
| 105 |
recurse into subrepositories |
| 106 |
.TP |
| 107 |
.BI \-I, \-\-include \ <PATTERN[+]> |
| 108 |
. |
| 109 |
include names matching the given patterns |
| 110 |
.TP |
| 111 |
.BI \-X, \-\-exclude \ <PATTERN[+]> |
| 112 |
. |
| 113 |
exclude names matching the given patterns |
| 114 |
.UNINDENT |
| 115 |
.sp |
| 116 |
[+] marked option can be specified multiple times |
| 117 |
.\" Generated by docutils manpage writer. |
| 118 |
.\" |
| 119 |
. |