diff tests/test-share.t @ 31212:344121b30f32

share: drop 'relshared' requirement as well
author Yuya Nishihara <yuya@tcha.org>
date Fri, 03 Mar 2017 00:11:51 +0900
parents ecbd378d9a7e
children bdcaf612e75a
line wrap: on
line diff
--- a/tests/test-share.t	Fri Mar 03 00:11:18 2017 +0900
+++ b/tests/test-share.t	Fri Mar 03 00:11:51 2017 +0900
@@ -393,6 +393,21 @@
   [255]
   $ hg -R thatdir/rel root
   $TESTTMP/thatdir/rel
+
+test unshare relshared repo
+
+  $ cd thatdir/rel
+  $ hg unshare
+  $ test -d .hg/store
+  $ test -f .hg/sharedpath
+  [1]
+  $ grep shared .hg/requires
+  [1]
+  $ hg unshare
+  abort: this is not a shared repo
+  [255]
+  $ cd ../..
+
   $ rm -r thatdir
 
 Explicitly kill daemons to let the test exit on Windows