Mercurial > hg
changeset 32618:d3e1c5b4986c
cmdutil: use isstdiofilename() where appropriate
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 01 Jun 2017 23:08:23 +0900 |
parents | e48cb1c7a902 |
children | d110fb58424c |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Thu Jun 01 23:05:29 2017 +0900 +++ b/mercurial/cmdutil.py Thu Jun 01 23:08:23 2017 +0900 @@ -493,7 +493,7 @@ 'exclusive')) if not message and logfile: try: - if logfile == '-': + if isstdiofilename(logfile): message = ui.fin.read() else: message = '\n'.join(util.readfile(logfile).splitlines())