# HG changeset patch # User Matt Mackall # Date 1316205081 18000 # Node ID f7993be2c32f2f28bfd4bfe61708212d8e3375a8 # Parent 4c1ec0fe59d6090d6ef4ad299215293c80f18de2 archive: add help examples diff -r 4c1ec0fe59d6 -r f7993be2c32f mercurial/commands.py --- a/mercurial/commands.py Wed Sep 14 22:01:39 2011 -0400 +++ b/mercurial/commands.py Fri Sep 16 15:31:21 2011 -0500 @@ -307,6 +307,18 @@ 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)