equal
deleted
inserted
replaced
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) |