tests/test-status-tracked-key.t
branchstable
changeset 49366 288de6f5d724
parent 49194 e4b31016e194
child 49500 3a53871048dc
equal deleted inserted replaced
49364:e8ea403b1c46 49366:288de6f5d724
   200   
   200   
   201   $ ls -1 .hg/dirstate-tracked-hint
   201   $ ls -1 .hg/dirstate-tracked-hint
   202   .hg/dirstate-tracked-hint
   202   .hg/dirstate-tracked-hint
   203   $ hg debugrequires | grep 'tracked'
   203   $ hg debugrequires | grep 'tracked'
   204   dirstate-tracked-key-v1
   204   dirstate-tracked-key-v1
       
   205   $ cd ..
       
   206 
       
   207 Test automatic upgrade and downgrade
       
   208 ------------------------------------
       
   209 
       
   210 create an initial repository
       
   211 
       
   212   $ hg init auto-upgrade \
       
   213   > --config format.use-dirstate-tracked-hint=no
       
   214   $ hg debugbuilddag -R auto-upgrade --new-file .+5
       
   215   $ hg -R auto-upgrade update
       
   216   6 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   217   $ hg debugformat -R auto-upgrade | grep tracked
       
   218   tracked-hint:        no
       
   219 
       
   220 upgrade it to dirstate-tracked-hint automatically
       
   221 
       
   222   $ hg status -R auto-upgrade \
       
   223   > --config format.use-dirstate-tracked-hint.automatic-upgrade-of-mismatching-repositories=yes \
       
   224   > --config format.use-dirstate-tracked-hint=yes
       
   225   automatically upgrading repository to the `tracked-hint` feature
       
   226   (see `hg help config.format.use-dirstate-tracked-hint` for details)
       
   227   $ hg debugformat -R auto-upgrade | grep tracked
       
   228   tracked-hint:       yes
       
   229 
       
   230 downgrade it from dirstate-tracked-hint automatically
       
   231 
       
   232   $ hg status -R auto-upgrade \
       
   233   > --config format.use-dirstate-tracked-hint.automatic-upgrade-of-mismatching-repositories=yes \
       
   234   > --config format.use-dirstate-tracked-hint=no
       
   235   automatically downgrading repository from the `tracked-hint` feature
       
   236   (see `hg help config.format.use-dirstate-tracked-hint` for details)
       
   237   $ hg debugformat -R auto-upgrade | grep tracked
       
   238   tracked-hint:        no