tests/test-upgrade-repo.t
changeset 49200 71774d799de7
parent 49199 575f3dedb69a
child 49218 5b1495c37b0c
equal deleted inserted replaced
49199:575f3dedb69a 49200:71774d799de7
  2067   $ chmod -R a-w auto-upgrade
  2067   $ chmod -R a-w auto-upgrade
  2068 
  2068 
  2069   $ hg status -R auto-upgrade \
  2069   $ hg status -R auto-upgrade \
  2070   >     --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
  2070   >     --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
  2071   >     --config format.use-dirstate-v2=no
  2071   >     --config format.use-dirstate-v2=no
  2072   abort: could not lock working directory of auto-upgrade: Permission denied
       
  2073   [20]
       
  2074   $ hg debugformat -R auto-upgrade | grep dirstate-v2
  2072   $ hg debugformat -R auto-upgrade | grep dirstate-v2
  2075   dirstate-v2:        yes
  2073   dirstate-v2:        yes
  2076 
  2074 
  2077   $ chmod -R u+w auto-upgrade
  2075   $ chmod -R u+w auto-upgrade
  2078 
  2076 
  2083   $ echo $! >> $DAEMON_PIDS
  2081   $ echo $! >> $DAEMON_PIDS
  2084   $ $RUNTESTDIR/testlib/wait-on-file 10 auto-upgrade/.hg/store/lock
  2082   $ $RUNTESTDIR/testlib/wait-on-file 10 auto-upgrade/.hg/store/lock
  2085   $ hg status -R auto-upgrade \
  2083   $ hg status -R auto-upgrade \
  2086   >     --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
  2084   >     --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
  2087   >     --config format.use-dirstate-v2=no
  2085   >     --config format.use-dirstate-v2=no
  2088   abort: repository auto-upgrade: timed out waiting for lock held by 'brunhoff/effffffc:1215708'
       
  2089   [20]
       
  2090   $ hg debugformat -R auto-upgrade | grep dirstate-v2
  2086   $ hg debugformat -R auto-upgrade | grep dirstate-v2
  2091   dirstate-v2:        yes
  2087   dirstate-v2:        yes
  2092 
  2088 
  2093   $ killdaemons.py
  2089   $ killdaemons.py