tests/test-push.t
changeset 30281 e58acb4fc510
parent 30280 0269ab4f4371
child 33138 78fc540c53e1
child 33639 08cfc4baf3ba
equal deleted inserted replaced
30280:0269ab4f4371 30281:e58acb4fc510
   241   rollback completed
   241   rollback completed
   242   abort: missing file data for beta:dddc47b3ba30e54484720ce0f4f768a0f4b6efb9 - run hg verify
   242   abort: missing file data for beta:dddc47b3ba30e54484720ce0f4f768a0f4b6efb9 - run hg verify
   243   [255]
   243   [255]
   244 
   244 
   245   $ cd ..
   245   $ cd ..
       
   246 
       
   247 Test push hook locking
       
   248 =====================
       
   249 
       
   250   $ hg init 1
       
   251 
       
   252   $ echo '[ui]' >> 1/.hg/hgrc
       
   253   $ echo 'timeout = 10' >> 1/.hg/hgrc
       
   254 
       
   255   $ echo foo > 1/foo
       
   256   $ hg --cwd 1 ci -A -m foo
       
   257   adding foo
       
   258 
       
   259   $ hg clone 1 2
       
   260   updating to branch default
       
   261   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   262 
       
   263   $ hg clone 2 3
       
   264   updating to branch default
       
   265   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   266 
       
   267   $ cat <<EOF > $TESTTMP/debuglocks-pretxn-hook.sh
       
   268   > hg debuglocks
       
   269   > true
       
   270   > EOF
       
   271   $ echo '[hooks]' >> 2/.hg/hgrc
       
   272   $ echo "pretxnchangegroup.a = sh $TESTTMP/debuglocks-pretxn-hook.sh" >> 2/.hg/hgrc
       
   273   $ echo 'changegroup.push = hg push -qf ../1' >> 2/.hg/hgrc
       
   274 
       
   275   $ echo bar >> 3/foo
       
   276   $ hg --cwd 3 ci -m bar
       
   277 
       
   278   $ hg --cwd 3 push ../2 --config devel.legacy.exchange=bundle1
       
   279   pushing to ../2
       
   280   searching for changes
       
   281   adding changesets
       
   282   adding manifests
       
   283   adding file changes
       
   284   added 1 changesets with 1 changes to 1 files
       
   285   lock:  user *, process * (*s) (glob)
       
   286   wlock: free
       
   287 
       
   288   $ hg --cwd 1 --config extensions.strip= strip tip -q
       
   289   $ hg --cwd 2 --config extensions.strip= strip tip -q
       
   290   $ hg --cwd 3 push ../2 # bundle2+
       
   291   pushing to ../2
       
   292   searching for changes
       
   293   adding changesets
       
   294   adding manifests
       
   295   adding file changes
       
   296   added 1 changesets with 1 changes to 1 files
       
   297   lock:  user *, process * (*s) (glob)
       
   298   wlock: user *, process * (*s) (glob)
       
   299