tests/test-lock-badness.t
branchstable
changeset 29008 38292b227deb
parent 26587 56b2bcea2529
child 29883 0c8c388c7d62
equal deleted inserted replaced
29007:78074575df2e 29008:38292b227deb
    54   > def sleepone(**x): time.sleep(1)
    54   > def sleepone(**x): time.sleep(1)
    55   > def sleephalf(**x): time.sleep(0.5)
    55   > def sleephalf(**x): time.sleep(0.5)
    56   > EOF
    56   > EOF
    57   $ echo b > b/b
    57   $ echo b > b/b
    58   $ hg -R b ci -A -m b --config hooks.precommit="python:`pwd`/hooks.py:sleepone" > stdout &
    58   $ hg -R b ci -A -m b --config hooks.precommit="python:`pwd`/hooks.py:sleepone" > stdout &
    59   $ hg -R b up -q --config hooks.pre-update="python:`pwd`/hooks.py:sleephalf"
    59   $ hg -R b up -q --config hooks.pre-update="python:`pwd`/hooks.py:sleephalf" \
       
    60   > > preup 2>&1
       
    61   $ wait
       
    62   $ cat preup
    60   waiting for lock on working directory of b held by '*:*' (glob)
    63   waiting for lock on working directory of b held by '*:*' (glob)
    61   got lock after ? seconds (glob)
    64   got lock after * seconds (glob)
    62   $ wait
       
    63   $ cat stdout
    65   $ cat stdout
    64   adding b
    66   adding b
    65 
    67 
    66 Pushing to a local read-only repo that can't be locked
    68 Pushing to a local read-only repo that can't be locked
    67 
    69