test: test unshare command
authorSimon Heimberg <simohe@besonet.ch>
Sat, 13 Aug 2011 00:08:26 +0200
changeset 15080 574dc5d74f9b
parent 15079 ea96bdda593c
child 15081 d30ec2d16c5a
test: test unshare command
tests/test-share.t
--- a/tests/test-share.t	Thu Aug 11 00:04:00 2011 +0200
+++ b/tests/test-share.t	Sat Aug 13 00:08:26 2011 +0200
@@ -97,3 +97,21 @@
   -rw-r--r-- 2 b
   
   
+
+test unshare command
+
+  $ hg unshare
+  $ test -d .hg/store
+  $ test -f .hg/sharedpath
+  [1]
+  $ hg unshare
+  abort: this is not a shared repo
+  [255]
+
+check that a change does not propagate
+
+  $ echo b >> b
+  $ hg commit -m'change in unshared'
+  $ cd ../repo1
+  $ hg id -r tip
+  c2e0ac586386 tip