# HG changeset patch # User Adrian Buehlmann # Date 2010-08-26 10:41:00 # Node ID 45ff6dcf82ea4d1b37f18ac844e5955b4f3f69b2 # Parent fddacca3202e15ba8087ed0f2236be18104bae7d tests: unify test-lock-badness diff --git a/tests/test-lock-badness.out b/tests/test-lock-badness.out deleted file mode 100644 --- a/tests/test-lock-badness.out +++ /dev/null @@ -1,6 +0,0 @@ -adding a -updating to branch default -1 files updated, 0 files merged, 0 files removed, 0 files unresolved -adding b -pushing to ../a -abort: could not lock repository ../a: Permission denied diff --git a/tests/test-lock-badness b/tests/test-lock-badness.t old mode 100755 new mode 100644 rename from tests/test-lock-badness rename to tests/test-lock-badness.t --- a/tests/test-lock-badness +++ b/tests/test-lock-badness.t @@ -1,11 +1,21 @@ -#!/bin/sh + $ hg init a + $ echo a > a/a + $ hg -R a ci -A -m a + adding a + + $ hg clone a b + updating to branch default + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved -hg init a -echo a > a/a -hg --cwd a ci -A -m a -hg clone a b -echo b > b/b -hg --cwd b ci -A -m b -chmod 100 a/.hg/store -hg --cwd b push ../a -chmod 700 a/.hg/store + $ echo b > b/b + $ hg -R b ci -A -m b + adding b + + $ chmod 100 a/.hg/store + + $ hg -R b push a + pushing to a + abort: could not lock repository a: Permission denied + + $ chmod 700 a/.hg/store +