Pass filename to decoder for 'hg archive' (fixes issue267)
authorThomas Arendsen Hein <thomas@intevation.de>
Wed, 31 May 2006 19:41:01 +0200
changeset 2353 0c0bfea3f72a
parent 2352 61909dfb316d
child 2354 16276b1c0658
Pass filename to decoder for 'hg archive' (fixes issue267) Despite writing to a file descriptor, the check in the [decode] section needs a filename. localrepo.wwrite() still writes to the file descriptor.
mercurial/archival.py
--- a/mercurial/archival.py	Mon May 29 16:46:31 2006 +0800
+++ b/mercurial/archival.py	Wed May 31 19:41:01 2006 +0200
@@ -156,7 +156,7 @@
         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)