changeset 27417 | 9073a1e457c9 |
parent 27416 | 9d04b4da6773 |
child 27418 | 2ce4661ac226 |
--- a/mercurial/cmdutil.py Sun Dec 13 19:47:46 2015 +0900 +++ b/mercurial/cmdutil.py Sun Dec 13 19:57:54 2015 +0900 @@ -1054,8 +1054,7 @@ fp = makefileobj(repo, template, node, desc=desc, total=total, seqno=seqno, revwidth=revwidth, mode='wb', modemap=filemode) - if fp != template: - shouldclose = True + shouldclose = True if fp and not getattr(fp, 'name', '<unnamed>').startswith('<'): repo.ui.note("%s\n" % fp.name)