tests/test-share-safe.t
changeset 45486 ac7a3da0dbb6
parent 45485 b71858b42963
child 45487 78f0bb37f52d
equal deleted inserted replaced
45485:b71858b42963 45486:ac7a3da0dbb6
    31 
    31 
    32   $ echo a > a
    32   $ echo a > a
    33   $ hg ci -Aqm "added a"
    33   $ hg ci -Aqm "added a"
    34   $ echo b > b
    34   $ echo b > b
    35   $ hg ci -Aqm "added b"
    35   $ hg ci -Aqm "added b"
       
    36 
       
    37   $ HGEDITOR=cat hg config --shared
       
    38   abort: repository is not shared; can't use --shared
       
    39   [255]
    36   $ cd ..
    40   $ cd ..
    37 
    41 
    38 Create a shared repo and check the requirements are shared and read correctly
    42 Create a shared repo and check the requirements are shared and read correctly
    39   $ hg share source shared1
    43   $ hg share source shared1
    40   updating working directory
    44   updating working directory
    82   $ echo "[ui]" >> .hg/hgrc
    86   $ echo "[ui]" >> .hg/hgrc
    83   $ echo "curses=false" >> .hg/hgrc
    87   $ echo "curses=false" >> .hg/hgrc
    84 
    88 
    85   $ hg showconfig ui.curses
    89   $ hg showconfig ui.curses
    86   false
    90   false
       
    91 
       
    92   $ HGEDITOR=cat hg config --shared
       
    93   [ui]
       
    94   curses=true
       
    95 
       
    96   $ HGEDITOR=cat hg config --local
       
    97   [ui]
       
    98   curses=false
    87 
    99 
    88 Testing that hooks set in source repository also runs in shared repo
   100 Testing that hooks set in source repository also runs in shared repo
    89 
   101 
    90   $ cd ../source
   102   $ cd ../source
    91   $ cat <<EOF >> .hg/hgrc
   103   $ cat <<EOF >> .hg/hgrc