comparison mercurial/commands.py @ 36203:01280638bdb1

cmdutil: make node parameter of makefileobj() mandatory (API) (repo, node) pair will be replaced with ctx, so makefilename() can be easily ported to templater.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 02 Apr 2015 23:22:02 +0900
parents 2d6e03a28c31
children 33ed8b511185
comparison
equal deleted inserted replaced
36202:707aba4d48b5 36203:01280638bdb1
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) 489 dest = cmdutil.makefileobj(repo, dest, node)
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(repo, prefix, node) 493 prefix = cmdutil.makefilename(repo, prefix, node)
494 match = scmutil.match(ctx, [], opts) 494 match = scmutil.match(ctx, [], opts)