comparison 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
comparison
equal deleted inserted replaced
36204:33ed8b511185 36205:976e1cfb2f64
484 prefix = opts.get('prefix') 484 prefix = opts.get('prefix')
485 485
486 if dest == '-': 486 if dest == '-':
487 if kind == 'files': 487 if kind == 'files':
488 raise error.Abort(_('cannot archive plain files to stdout')) 488 raise error.Abort(_('cannot archive plain files to stdout'))
489 dest = cmdutil.makefileobj(repo, dest, node) 489 dest = cmdutil.makefileobj(ctx, dest)
490 if not prefix: 490 if not prefix:
491 prefix = os.path.basename(repo.root) + '-%h' 491 prefix = os.path.basename(repo.root) + '-%h'
492 492
493 prefix = cmdutil.makefilename(ctx, prefix) 493 prefix = cmdutil.makefilename(ctx, prefix)
494 match = scmutil.match(ctx, [], opts) 494 match = scmutil.match(ctx, [], opts)