Mercurial > public > mercurial-scm > hg-stable
diff hgext/mq.py @ 6027:cee68264ed92
mq: qimport must read patches in binary mode
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 06 Feb 2008 23:09:13 +0100 |
parents | f2201aee3dc8 |
children | 83633602e2c5 36a60bd5b707 |
line wrap: on
line diff
--- a/hgext/mq.py Tue Feb 05 15:54:42 2008 +0100 +++ b/hgext/mq.py Wed Feb 06 23:09:13 2008 +0100 @@ -1414,7 +1414,7 @@ raise util.Abort(_('need --name to import a patch from -')) text = sys.stdin.read() else: - text = file(filename).read() + text = file(filename, 'rb').read() except IOError: raise util.Abort(_("unable to read %s") % patchname) if not patchname: