diff mercurial/commands.py @ 12323:f00953d9533c

subrepo: add support for 'hg archive'
author Martin Geisler <mg@aragost.com>
date Mon, 20 Sep 2010 15:46:17 +0200
parents c02e1ed3d407
children 6f0d9d79111f
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Sep 20 15:44:30 2010 +0200
+++ b/mercurial/commands.py	Mon Sep 20 15:46:17 2010 +0200
@@ -199,7 +199,7 @@
     prefix = cmdutil.make_filename(repo, prefix, node)
     matchfn = cmdutil.match(repo, [], opts)
     archival.archive(repo, dest, node, kind, not opts.get('no_decode'),
-                     matchfn, prefix)
+                     matchfn, prefix, subrepos=opts.get('subrepos'))
 
 def backout(ui, repo, node=None, rev=None, **opts):
     '''reverse effect of earlier changeset
@@ -3963,7 +3963,7 @@
            _('revision to distribute'), _('REV')),
           ('t', 'type', '',
            _('type of distribution to create'), _('TYPE')),
-         ] + walkopts,
+         ] + subrepoopts + walkopts,
          _('[OPTION]... DEST')),
     "backout":
         (backout,