mercurial/commands.py
changeset 711 734712f37de3
parent 709 cc2e8f3d4412
child 712 b4f0fad0ea64
equal deleted inserted replaced
709:cc2e8f3d4412 711:734712f37de3
   533     if opts['output'] and opts['output'] != '-':
   533     if opts['output'] and opts['output'] != '-':
   534         try:
   534         try:
   535             outname = make_filename(repo, repo.changelog, opts['output'],
   535             outname = make_filename(repo, repo.changelog, opts['output'],
   536                                     node=node, total=total, seqno=seqno,
   536                                     node=node, total=total, seqno=seqno,
   537                                     revwidth=revwidth)
   537                                     revwidth=revwidth)
       
   538             ui.note("Exporting patch to '%s'.\n" % outname)
   538             fp = open(outname, 'wb')
   539             fp = open(outname, 'wb')
   539         except KeyError, inst:
   540         except KeyError, inst:
   540             ui.warn("error: invalid format spec '%%%s' in output file name\n" %
   541             ui.warn("error: invalid format spec '%%%s' in output file name\n" %
   541                     inst.args[0])
   542                     inst.args[0])
   542             sys.exit(1)
   543             sys.exit(1)