tests/test-phases-exchange.t
changeset 38239 ead71b15efd5
parent 38171 eb9835014d20
parent 38000 7c05198cd1ca
child 38249 1e9c357d3ddf
--- a/tests/test-phases-exchange.t	Sat May 26 03:01:14 2018 +0530
+++ b/tests/test-phases-exchange.t	Wed Jun 06 13:31:24 2018 -0400
@@ -1309,6 +1309,18 @@
   [1]
   $ chmod -R +w .hg
 
+3. Test that push is prevented if lock was already acquired (not a permission
+error, but EEXIST)
+
+  $ touch .hg/store/lock
+  $ hg push ../Phi --config ui.timeout=1
+  pushing to ../Phi
+  waiting for lock on repository $TESTTMP/Upsilon held by ''
+  abort: repository $TESTTMP/Upsilon: timed out waiting for lock held by ''
+  (lock might be very busy)
+  [255]
+  $ rm .hg/store/lock
+
   $ cd ..
 
 #endif