##// 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 shouldclose = False
682 shouldclose = False
683 if not fp:
683 if not fp:
684 shouldclose = True
685 fp = make_file(repo, template, node, total=total, seqno=seqno,
684 fp = make_file(repo, template, node, total=total, seqno=seqno,
686 revwidth=revwidth, mode='ab')
685 revwidth=revwidth, mode='ab')
686 if fp != template:
687 shouldclose = True
687 if fp != sys.stdout and hasattr(fp, 'name'):
688 if fp != sys.stdout and hasattr(fp, 'name'):
688 repo.ui.note("%s\n" % fp.name)
689 repo.ui.note("%s\n" % fp.name)
689
690
General Comments 0
You need to be logged in to leave comments. Login now