Commit 4b1e1c49 authored by Matt Mackall's avatar Matt Mackall
Browse files

archive: add help examples

parent 4c1ec0fe59d6
......@@ -307,6 +307,18 @@ def archive(ui, repo, dest, **opts):
The archive type is automatically detected based on file
extension (or override using -t/--type).
.. container:: verbose
Examples:
- create a zip file containing the 1.0 release::
hg archive -r 1.0 project-1.0.zip
- create a tarball excluding .hg files::
hg archive project.tar.gz -X ".hg*"
Valid types are:
:``files``: a directory full of files (default)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment