##// END OF EJS Templates
export: only close files which export itself has opened
Waqas Hussain -
r13467:31aa2e5b stable
parent child Browse files
Show More
@@ -681,9 +681,10 b" def export(repo, revs, template='hg-%h.p"
681 681
682 682 shouldclose = False
683 683 if not fp:
684 shouldclose = True
685 684 fp = make_file(repo, template, node, total=total, seqno=seqno,
686 685 revwidth=revwidth, mode='ab')
686 if fp != template:
687 shouldclose = True
687 688 if fp != sys.stdout and hasattr(fp, 'name'):
688 689 repo.ui.note("%s\n" % fp.name)
689 690
General Comments 0
You need to be logged in to leave comments. Login now