tests/test-dirstate.t
branchstable
changeset 50177 964a913343a2
parent 49549 fc719967efd0
child 50222 ecd28d89c29e
equal deleted inserted replaced
50173:bf27727e6c78 50177:964a913343a2
   146 
   146 
   147   $ cd ..
   147   $ cd ..
   148   $ hg init append-mostly
   148   $ hg init append-mostly
   149   $ cd append-mostly
   149   $ cd append-mostly
   150   $ mkdir dir dir2
   150   $ mkdir dir dir2
   151   $ touch dir/a dir/b dir/c dir/d dir/e dir2/f
   151   $ touch -t 200001010000 dir/a dir/b dir/c dir/d dir/e dir2/f dir dir2
   152   $ hg commit -Aqm initial
   152   $ hg commit -Aqm initial
   153   $ hg st
   153   $ hg st
   154   $ dirstate_data_files | wc -l
   154   $ dirstate_data_files | wc -l
   155    *1 (re)
   155    *1 (re)
   156   $ current_uid=$(find_dirstate_uuid)
   156   $ current_uid=$(find_dirstate_uuid)
   161   $ dirstate_data_files | wc -l
   161   $ dirstate_data_files | wc -l
   162    *1 (re)
   162    *1 (re)
   163   $ dirstate_uuid_has_not_changed
   163   $ dirstate_uuid_has_not_changed
   164   not testing because using Python implementation (no-rust no-rhg !)
   164   not testing because using Python implementation (no-rust no-rhg !)
   165 
   165 
   166 Trigger an append with a small change
   166 Trigger an append with a small change to directory mtime
   167 
   167 
   168   $ current_data_size=$(find_dirstate_data_size)
   168   $ current_data_size=$(find_dirstate_data_size)
   169   $ rm dir2/f
   169   $ touch -t 201001010000 dir2
   170   $ hg st
   170   $ hg st
   171   ! dir2/f
       
   172   $ dirstate_data_files | wc -l
   171   $ dirstate_data_files | wc -l
   173    *1 (re)
   172    *1 (re)
   174   $ dirstate_uuid_has_not_changed
   173   $ dirstate_uuid_has_not_changed
   175   not testing because using Python implementation (no-rust no-rhg !)
   174   not testing because using Python implementation (no-rust no-rhg !)
   176   $ new_data_size=$(find_dirstate_data_size)
   175   $ new_data_size=$(find_dirstate_data_size)
   185   $ current_uid=$(find_dirstate_uuid)
   184   $ current_uid=$(find_dirstate_uuid)
   186 
   185 
   187 Trigger a rust/rhg run which updates the unused bytes value
   186 Trigger a rust/rhg run which updates the unused bytes value
   188   $ hg st
   187   $ hg st
   189   A file
   188   A file
   190   ! dir2/f
       
   191   $ dirstate_data_files | wc -l
   189   $ dirstate_data_files | wc -l
   192    *1 (re)
   190    *1 (re)
   193   $ dirstate_uuid_has_not_changed
   191   $ dirstate_uuid_has_not_changed
   194   not testing because using Python implementation (no-rust no-rhg !)
   192   not testing because using Python implementation (no-rust no-rhg !)
   195 
   193