tests/test-dirstate.t
branchstable
changeset 49155 c69adc82e7f7
parent 49154 51262af89efe
child 49156 09984dc70352
equal deleted inserted replaced
49154:51262af89efe 49155:c69adc82e7f7
   164   M dir2/f
   164   M dir2/f
   165   $ dirstate_data_files | wc -l
   165   $ dirstate_data_files | wc -l
   166    *1 (re)
   166    *1 (re)
   167   $ dirstate_uuid_has_not_changed
   167   $ dirstate_uuid_has_not_changed
   168 
   168 
       
   169 Unused bytes counter is non-0 when appending
       
   170   $ touch file
       
   171   $ hg add file
       
   172   $ current_uid=$(find_dirstate_uuid)
       
   173 
       
   174 Trigger a rust/rhg run which updates the unused bytes value
       
   175   $ hg st
       
   176   M dir2/f
       
   177   A file
       
   178   $ dirstate_data_files | wc -l
       
   179    *1 (re)
       
   180   $ dirstate_uuid_has_not_changed
       
   181 
       
   182   $ hg debugstate --docket | grep unused
       
   183   number of unused bytes: 0 (no-rust no-rhg !)
       
   184   number of unused bytes: [1-9]\d* (re) (rhg no-rust !)
       
   185   number of unused bytes: [1-9]\d* (re) (rust no-rhg !)
       
   186   number of unused bytes: [1-9]\d* (re) (rust rhg !)
       
   187 
   169 Delete most of the dirstate to trigger a non-append
   188 Delete most of the dirstate to trigger a non-append
   170   $ hg rm dir/a dir/b dir/c dir/d
   189   $ hg rm dir/a dir/b dir/c dir/d
   171   $ dirstate_data_files | wc -l
   190   $ dirstate_data_files | wc -l
   172    *1 (re)
   191    *1 (re)
   173   $ dirstate_uuid_has_not_changed also-if-python
   192   $ dirstate_uuid_has_not_changed also-if-python
   174   [1]
   193   [1]
   175 
   194 
   176   $ cd ..
   195 Check that unused bytes counter is reset when creating a new docket
       
   196 
       
   197   $ hg debugstate --docket | grep unused
       
   198   number of unused bytes: 0 (no-rust !)
       
   199   number of unused bytes: [1-9]\d* (re) (rust known-bad-output !)
       
   200 
   177 #endif
   201 #endif
       
   202 
       
   203   $ cd ..