mercurial/dirstatemap.py
branchstable
changeset 50243 6cce0afc1454
parent 50242 379a78001d8e
child 50245 dbe09fb038fc
equal deleted inserted replaced
50242:379a78001d8e 50243:6cce0afc1454
   571             if self._use_dirstate_v2:
   571             if self._use_dirstate_v2:
   572                 self.docket  # load the data if needed
   572                 self.docket  # load the data if needed
   573                 testing.wait_on_cfg(self._ui, b'dirstate.post-docket-read-file')
   573                 testing.wait_on_cfg(self._ui, b'dirstate.post-docket-read-file')
   574                 if not self.docket.uuid:
   574                 if not self.docket.uuid:
   575                     data = b''
   575                     data = b''
       
   576                     self._map = rustmod.DirstateMap.new_empty()
   576                 else:
   577                 else:
   577                     data = self._read_v2_data()
   578                     data = self._read_v2_data()
   578                 self._map = rustmod.DirstateMap.new_v2(
   579                     self._map = rustmod.DirstateMap.new_v2(
   579                     data, self.docket.data_size, self.docket.tree_metadata
   580                         data,
   580                 )
   581                         self.docket.data_size,
       
   582                         self.docket.tree_metadata,
       
   583                         self.docket.uuid,
       
   584                     )
   581                 parents = self.docket.parents
   585                 parents = self.docket.parents
   582             else:
   586             else:
   583                 self._set_identity()
   587                 self._set_identity()
   584                 self._map, parents = rustmod.DirstateMap.new_v1(
   588                 self._map, parents = rustmod.DirstateMap.new_v1(
   585                     self._readdirstatefile()
   589                     self._readdirstatefile()