Show More
@@ -141,14 +141,14 b' def archive(ui, repo, dest, **opts):' | |||
|
141 | 141 | directory; use -r/--rev to specify a different revision. |
|
142 | 142 | |
|
143 | 143 | To specify the type of archive to create, use -t/--type. Valid |
|
144 |
types are: |
|
|
145 | ||
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
|
144 | types are: | |
|
145 | ||
|
146 | :``files``: a directory full of files (default) | |
|
147 | :``tar``: tar archive, uncompressed | |
|
148 | :``tbz2``: tar archive, compressed using bzip2 | |
|
149 | :``tgz``: tar archive, compressed using gzip | |
|
150 | :``uzip``: zip archive, uncompressed | |
|
151 | :``zip``: zip archive, compressed using deflate | |
|
152 | 152 | |
|
153 | 153 | The exact name of the destination archive or directory is given |
|
154 | 154 | using a format string; see 'hg help export' for details. |
@@ -561,11 +561,11 b' def cat(ui, repo, file1, *pats, **opts):' | |||
|
561 | 561 | |
|
562 | 562 | Output may be to a file, in which case the name of the file is |
|
563 | 563 | given using a format string. The formatting rules are the same as |
|
564 |
for the export command, with the following additions: |
|
|
565 | ||
|
566 |
|
|
|
567 |
|
|
|
568 |
|
|
|
564 | for the export command, with the following additions: | |
|
565 | ||
|
566 | :``%s``: basename of file being printed | |
|
567 | :``%d``: dirname of file being printed, or '.' if in repository root | |
|
568 | :``%p``: root-relative path name of file being printed | |
|
569 | 569 | """ |
|
570 | 570 | ctx = repo[opts.get('rev')] |
|
571 | 571 | err = 1 |
@@ -1140,16 +1140,16 b' def export(ui, repo, *changesets, **opts' | |||
|
1140 | 1140 | first parent only. |
|
1141 | 1141 | |
|
1142 | 1142 | Output may be to a file, in which case the name of the file is |
|
1143 |
given using a format string. The formatting rules are as follows: |
|
|
1144 | ||
|
1145 |
|
|
|
1146 |
|
|
|
1147 |
|
|
|
1148 |
|
|
|
1149 |
|
|
|
1150 |
|
|
|
1151 |
|
|
|
1152 |
|
|
|
1143 | given using a format string. The formatting rules are as follows: | |
|
1144 | ||
|
1145 | :``%%``: literal "%" character | |
|
1146 | :``%H``: changeset hash (40 bytes of hexadecimal) | |
|
1147 | :``%N``: number of patches being generated | |
|
1148 | :``%R``: changeset revision number | |
|
1149 | :``%b``: basename of the exporting repository | |
|
1150 | :``%h``: short-form changeset hash (12 bytes of hexadecimal) | |
|
1151 | :``%n``: zero-padded sequence number, starting at 1 | |
|
1152 | :``%r``: zero-padded changeset revision number | |
|
1153 | 1153 | |
|
1154 | 1154 | Without the -a/--text option, export will avoid generating diffs |
|
1155 | 1155 | of files it detects as binary. With -a, export will generate a |
@@ -13,9 +13,9 b' output the current or given revision of ' | |||
|
13 | 13 | a format string. The formatting rules are the same as for the export |
|
14 | 14 | command, with the following additions: |
|
15 | 15 | |
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
16 | "%s" basename of file being printed | |
|
17 | "%d" dirname of file being printed, or '.' if in repository root | |
|
18 | "%p" root-relative path name of file being printed | |
|
19 | 19 | |
|
20 | 20 | options: |
|
21 | 21 |
General Comments 0
You need to be logged in to leave comments.
Login now