tests/test-dirstate.t
branchstable
changeset 49410 486b8a383100
parent 49409 6b4ad07b4d69
child 49411 0705afae6253
equal deleted inserted replaced
49409:6b4ad07b4d69 49410:486b8a383100
   211   $ hg debugstate --docket | grep unused
   211   $ hg debugstate --docket | grep unused
   212   number of unused bytes: 0
   212   number of unused bytes: 0
   213 
   213 
   214 #endif
   214 #endif
   215 
   215 
       
   216 Transaction compatibility
       
   217 -------------------------
       
   218 
       
   219 The transaction preserves the dirstate.
       
   220 We should make sure all of it (docket + data) is preserved
       
   221 
       
   222 #if dirstate-v2
       
   223   $ hg commit -m 'bli'
       
   224 #endif
       
   225 
       
   226   $ hg update --quiet
       
   227   $ hg revert --all --quiet
       
   228   $ rm -f a
       
   229   $ echo foo > foo
       
   230   $ hg add foo
       
   231   $ hg commit -m foo
       
   232 
       
   233 #if dirstate-v2
       
   234   $ uid=$(find_dirstate_uuid)
       
   235   $ touch bar
       
   236   $ while [ uid = $(find_dirstate_uuid) ]; do
       
   237   >    hg add bar;
       
   238   >    hg remove bar;
       
   239   > done;
       
   240   $ rm bar
       
   241 #endif
       
   242   $ hg rollback
       
   243   repository tip rolled back to revision 1 (undo commit)
       
   244   working directory now based on revision 1
       
   245 
       
   246 #if dirstate-v1
       
   247   $ hg status
       
   248   A foo
       
   249 #else
       
   250   $ hg status
       
   251   abort: $ENOENT$: '*/.hg/dirstate.*' (glob) (known-bad-output !)
       
   252   [255]
       
   253 #endif