mercurial/commands.py
changeset 14291 1a791993ce59
parent 14290 86e70956da4f
child 14297 2daa5179e73f
--- a/mercurial/commands.py	Tue May 10 16:08:46 2011 -0500
+++ b/mercurial/commands.py	Tue May 10 16:08:47 2011 -0500
@@ -748,7 +748,8 @@
     err = 1
     m = cmdutil.match(repo, (file1,) + pats, opts)
     for abs in ctx.walk(m):
-        fp = cmdutil.make_file(repo, opts.get('output'), ctx.node(), pathname=abs)
+        fp = cmdutil.makefileobj(repo, opts.get('output'), ctx.node(),
+                                 pathname=abs)
         data = ctx[abs].data()
         if opts.get('decode'):
             data = repo.wwritedata(abs, data)