mercurial/commands.py
changeset 36204 33ed8b511185
parent 36203 01280638bdb1
child 36205 976e1cfb2f64
--- a/mercurial/commands.py	Thu Apr 02 23:22:02 2015 +0900
+++ b/mercurial/commands.py	Thu Apr 02 23:32:28 2015 +0900
@@ -476,7 +476,7 @@
     if not ctx:
         raise error.Abort(_('no working directory: please specify a revision'))
     node = ctx.node()
-    dest = cmdutil.makefilename(repo, dest, node)
+    dest = cmdutil.makefilename(ctx, dest)
     if os.path.realpath(dest) == repo.root:
         raise error.Abort(_('repository root cannot be destination'))
 
@@ -490,7 +490,7 @@
         if not prefix:
             prefix = os.path.basename(repo.root) + '-%h'
 
-    prefix = cmdutil.makefilename(repo, prefix, node)
+    prefix = cmdutil.makefilename(ctx, prefix)
     match = scmutil.match(ctx, [], opts)
     archival.archive(repo, dest, node, kind, not opts.get('no_decode'),
                      match, prefix, subrepos=opts.get('subrepos'))