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