mercurial/revlog.py
changeset 51031 133f5a54ed9d
parent 51030 177e7d6bf875
child 51032 774c00348f9f
equal deleted inserted replaced
51030:177e7d6bf875 51031:133f5a54ed9d
   442             self._nodemap_file = nodemaputil.get_nodemap_file(self)
   442             self._nodemap_file = nodemaputil.get_nodemap_file(self)
   443 
   443 
   444         assert target[0] in ALL_KINDS
   444         assert target[0] in ALL_KINDS
   445         assert len(target) == 2
   445         assert len(target) == 2
   446         self.target = target
   446         self.target = target
   447         self.feature_config = FeatureConfig(
   447         if b'feature-config' in self.opener.options:
   448             censorable=censorable,
   448             self.feature_config = self.opener.options[b'feature-config'].copy()
   449             canonical_parent_order=canonical_parent_order,
   449         else:
   450         )
   450             self.feature_config = FeatureConfig()
   451         self.data_config = DataConfig(
   451         self.feature_config.censorable = censorable
   452             check_ambig=checkambig,
   452         self.feature_config.canonical_parent_order = canonical_parent_order
   453             mmap_large_index=mmaplargeindex,
   453         if b'data-config' in self.opener.options:
   454         )
   454             self.data_config = self.opener.options[b'data-config'].copy()
   455         self.delta_config = DeltaConfig()
   455         else:
       
   456             self.data_config = DataConfig()
       
   457         self.data_config.check_ambig = checkambig
       
   458         self.data_config.mmap_large_index = mmaplargeindex
       
   459         if b'delta-config' in self.opener.options:
       
   460             self.delta_config = self.opener.options[b'delta-config'].copy()
       
   461         else:
       
   462             self.delta_config = DeltaConfig()
   456 
   463 
   457         # 3-tuple of (node, rev, text) for a raw revision.
   464         # 3-tuple of (node, rev, text) for a raw revision.
   458         self._revisioncache = None
   465         self._revisioncache = None
   459         # Maps rev to chain base rev.
   466         # Maps rev to chain base rev.
   460         self._chainbasecache = util.lrucachedict(100)
   467         self._chainbasecache = util.lrucachedict(100)