Submitter | phabricator |
---|---|
Date | April 12, 2018, 3:04 p.m. |
Message ID | <82687bbea45b207fd0996259c9360278@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/30786/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/sparse.py b/mercurial/sparse.py --- a/mercurial/sparse.py +++ b/mercurial/sparse.py @@ -579,7 +579,7 @@ # part of the active rules. changed = False for p in paths: - with util.posixfile(util.expandpath(p)) as fh: + with util.posixfile(util.expandpath(p), mode='rb') as fh: raw = fh.read() iincludes, iexcludes, iprofiles = parseconfig(repo.ui, raw)