Mercurial > hg > mercurial-crew-with-dirclash
changeset 2353:0c0bfea3f72a
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.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 31 May 2006 19:41:01 +0200 |
parents | 61909dfb316d |
children | 16276b1c0658 |
files | mercurial/archival.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)