tests/test-share.t
changeset 41801 2d835c42ab41
parent 41800 a62ad1be1671
child 41896 e82c932c01e3
equal deleted inserted replaced
41800:a62ad1be1671 41801:2d835c42ab41
   122   
   122   
   123   -rw-r--r-- 4 a
   123   -rw-r--r-- 4 a
   124   -rw-r--r-- 2 b
   124   -rw-r--r-- 2 b
   125   
   125   
   126   
   126   
   127 Cloning a shared repo via bundle2 wrongly adds "shared" to the clone's requirements
   127 Cloning a shared repo via bundle2 results in a non-shared clone
   128 
   128 
   129   $ cd ..
   129   $ cd ..
   130   $ hg clone -q --stream --config ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/repo2 cloned-via-bundle2
   130   $ hg clone -q --stream --config ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/repo2 cloned-via-bundle2
   131   $ cat ./cloned-via-bundle2/.hg/requires | grep "shared"
   131   $ cat ./cloned-via-bundle2/.hg/requires | grep "shared"
   132   shared
   132   [1]
   133   $ hg id --cwd cloned-via-bundle2 -r tip
   133   $ hg id --cwd cloned-via-bundle2 -r tip
   134   abort: $ENOENT$: '$TESTTMP/cloned-via-bundle2/.hg/sharedpath'
   134   c2e0ac586386 tip
   135   [255]
       
   136   $ cd repo2
   135   $ cd repo2
   137 
   136 
   138 test unshare command
   137 test unshare command
   139 
   138 
   140   $ hg unshare
   139   $ hg unshare