# HG changeset patch # User Simon Heimberg # Date 1313186906 -7200 # Node ID 574dc5d74f9b9ad25f755f74f661a0d89334ec6a # Parent ea96bdda593cb9bc7d83a2e96692b2d30785c7bd test: test unshare command diff --git a/tests/test-share.t b/tests/test-share.t --- a/tests/test-share.t +++ b/tests/test-share.t @@ -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