##// END OF EJS Templates
tests: merge 'test-push-hook-lock.t' into 'test-push.t'...
Pierre-Yves David -
r30281:e58acb4f default
parent child Browse files
Show More
@@ -243,3 +243,57 b' Expected to fail:'
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
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now