mercurial/commands.py
branchstable
changeset 14742 271424fdbeec
parent 14740 d83ad13a280e
child 14755 6ba51c81ff75
--- a/mercurial/commands.py	Fri Jun 24 19:27:53 2011 +0300
+++ b/mercurial/commands.py	Fri Jun 24 17:04:37 2011 +0300
@@ -337,7 +337,7 @@
     if dest == '-':
         if kind == 'files':
             raise util.Abort(_('cannot archive plain files to stdout'))
-        dest = ui.fout
+        dest = cmdutil.makefileobj(repo, dest)
         if not prefix:
             prefix = os.path.basename(repo.root) + '-%h'