summaryrefslogtreecommitdiff
path: root/tests/test-pull-permission.t
diff options
context:
space:
mode:
authorLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
committerLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
commita498da43c7fdb9f24b73680c02a4a3588cc62d9a (patch)
treedaf8119dae1749b5165b68033a1b23a7375ce9ce /tests/test-pull-permission.t
downloadmercurial-tarball-a498da43c7fdb9f24b73680c02a4a3588cc62d9a.tar.gz
Tarball conversion
Diffstat (limited to 'tests/test-pull-permission.t')
-rw-r--r--tests/test-pull-permission.t32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/test-pull-permission.t b/tests/test-pull-permission.t
new file mode 100644
index 0000000..8df5527
--- /dev/null
+++ b/tests/test-pull-permission.t
@@ -0,0 +1,32 @@
+ $ "$TESTDIR/hghave" unix-permissions || exit 80
+
+ $ hg init a
+ $ cd a
+ $ echo foo > b
+ $ hg add b
+ $ hg ci -m "b"
+
+ $ chmod -w .hg/store
+
+ $ cd ..
+
+ $ hg clone a b
+ requesting all changes
+ adding changesets
+ adding manifests
+ adding file changes
+ added 1 changesets with 1 changes to 1 files
+ updating to branch default
+ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+
+ $ chmod +w a/.hg/store # let test clean up
+
+ $ cd b
+ $ hg verify
+ checking changesets
+ checking manifests
+ crosschecking files in changesets and manifests
+ checking files
+ 1 files, 1 changesets, 1 total revisions
+
+ $ cd ..