tests/test-share.t
changeset 46337 6e81446bf1d9
parent 46314 95a615dd77bf
child 47183 8be95673eb8a
equal deleted inserted replaced
46336:4f17773fc6b5 46337:6e81446bf1d9
     1 #testcases safe normal
     1 #testcases safe normal
     2 
     2 
     3 #if safe
     3 #if safe
     4   $ echo "[format]"         >> $HGRCPATH
     4   $ echo "[format]"         >> $HGRCPATH
     5   $ echo "exp-share-safe = True" >> $HGRCPATH
     5   $ echo "use-share-safe = True" >> $HGRCPATH
     6 #endif
     6 #endif
     7 
     7 
     8   $ echo "[extensions]"      >> $HGRCPATH
     8   $ echo "[extensions]"      >> $HGRCPATH
     9   $ echo "share = "          >> $HGRCPATH
     9   $ echo "share = "          >> $HGRCPATH
    10 
    10 
   279   $ killdaemons.py
   279   $ killdaemons.py
   280 
   280 
   281 Test sharing a repository which was created with store requirement disable
   281 Test sharing a repository which was created with store requirement disable
   282 
   282 
   283   $ hg init nostore --config format.usestore=false
   283   $ hg init nostore --config format.usestore=false
   284   ignoring enabled 'format.exp-share-safe' config because it is incompatible with disabled 'format.usestore' config (safe !)
   284   ignoring enabled 'format.use-share-safe' config because it is incompatible with disabled 'format.usestore' config (safe !)
   285   $ hg share nostore sharednostore
   285   $ hg share nostore sharednostore
   286   abort: cannot create shared repository as source was created with 'format.usestore' config disabled
   286   abort: cannot create shared repository as source was created with 'format.usestore' config disabled
   287   [255]
   287   [255]