mercurial/archival.py
changeset 2353 0c0bfea3f72a
parent 2169 4564794b6f55
child 2477 857591c586e0
--- a/mercurial/archival.py
+++ b/mercurial/archival.py
@@ -156,7 +156,7 @@ def archive(repo, dest, node, kind, deco
         if matchfn and not matchfn(name): return
         if decode:
             fp = cStringIO.StringIO()
-            repo.wwrite(None, data, fp)
+            repo.wwrite(name, data, fp)
             data = fp.getvalue()
         archiver.addfile(name, mode, data)