# HG changeset patch # User Gregory Szorc # Date 2018-09-12 22:17:47 # Node ID 6f26417b71bb79e3c8fdf7a6b946283e7f201a5e # Parent f441876053154e8a9b290b8a61dd65dd75321238 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 diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -818,8 +818,8 @@ class localrepository(object): 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: