Mercurial > hg-stable
changeset 39715:6f26417b71bb
localrepo: use boolean in opener options
Not sure why we're using an integer for a flag value here. I'm
pretty sure nothing relies on values being 1.
While we're here, convert to a dict comprehension.
Differential Revision: https://phab.mercurial-scm.org/D4575
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 12 Sep 2018 15:17:47 -0700 |
parents | f44187605315 |
children | b10d145837bc |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Wed Sep 12 15:07:27 2018 -0700 +++ b/mercurial/localrepo.py Wed Sep 12 15:17:47 2018 -0700 @@ -818,8 +818,8 @@ return caps def _applyopenerreqs(self): - self.svfs.options = dict((r, 1) for r in self.requirements - if r in self.openerreqs) + self.svfs.options = {r: True for r in self.requirements + if r in self.openerreqs} # experimental config: format.chunkcachesize chunkcachesize = self.ui.configint('format', 'chunkcachesize') if chunkcachesize is not None: