diff mercurial/commands.py @ 36205:976e1cfb2f64

cmdutil: pass ctx to makefileobj() in place of repo/node pair (API)
author Yuya Nishihara <yuya@tcha.org>
date Thu, 02 Apr 2015 23:28:16 +0900
parents 33ed8b511185
children 5c9bdfb32eac
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Apr 02 23:32:28 2015 +0900
+++ b/mercurial/commands.py	Thu Apr 02 23:28:16 2015 +0900
@@ -486,7 +486,7 @@
     if dest == '-':
         if kind == 'files':
             raise error.Abort(_('cannot archive plain files to stdout'))
-        dest = cmdutil.makefileobj(repo, dest, node)
+        dest = cmdutil.makefileobj(ctx, dest)
         if not prefix:
             prefix = os.path.basename(repo.root) + '-%h'