mercurial/archival.py
changeset 17108 1894dac619de
parent 16919 51932c835b74
child 17429 72fa4ef2245f
child 17628 133d13e44544
--- a/mercurial/archival.py	Mon Jun 18 22:45:21 2012 -0400
+++ b/mercurial/archival.py	Sat Jun 16 22:34:06 2012 -0400
@@ -7,6 +7,7 @@
 
 from i18n import _
 from node import hex
+import match as matchmod
 import cmdutil
 import scmutil, util, encoding
 import cStringIO, os, tarfile, time, zipfile
@@ -284,6 +285,7 @@
     if subrepos:
         for subpath in ctx.substate:
             sub = ctx.sub(subpath)
-            sub.archive(repo.ui, archiver, prefix)
+            submatch = matchmod.narrowmatcher(subpath, matchfn)
+            sub.archive(repo.ui, archiver, prefix, submatch)
 
     archiver.done()