tests/test-topic-tutorial.t
branchstable
changeset 2826 93588d219f2f
parent 2825 7608f1e04205
child 2827 498409c72dd2
equal deleted inserted replaced
2825:7608f1e04205 2826:93588d219f2f
     1 ==============
     1 ==============
     2 Topic Tutorial
     2 Topic Tutorial
     3 ==============
     3 ==============
     4 
     4 
     5 .. This test file is also supposed to be able to compile as a rest file.
     5 This Mercurial configuration example is used for testing.
     6 
     6 
     7 
     7 .. Various setup
     8 .. Some Setup::
       
     9 
     8 
    10   $ . "$TESTDIR/testlib/topic_setup.sh"
     9   $ . "$TESTDIR/testlib/topic_setup.sh"
    11   $ hg init server
    10   $ hg init server
       
    11 
    12   $ cd server
    12   $ cd server
       
    13 
    13   $ cat >> .hg/hgrc << EOF
    14   $ cat >> .hg/hgrc << EOF
    14   > [ui]
    15   > [ui]
    15   > user= Shopping Master
    16   > user= Shopping Master
    16   > EOF
    17   > EOF
       
    18 
    17   $ cat >> shopping << EOF
    19   $ cat >> shopping << EOF
    18   > Spam
    20   > Spam
    19   > Whizzo butter
    21   > Whizzo butter
    20   > Albatross
    22   > Albatross
    21   > Rat (rather a lot)
    23   > Rat (rather a lot)
    22   > Jugged fish
    24   > Jugged fish
    23   > Blancmange
    25   > Blancmange
    24   > Salmon mousse
    26   > Salmon mousse
    25   > EOF
    27   > EOF
       
    28 
    26   $ hg commit -A -m "Shopping list"
    29   $ hg commit -A -m "Shopping list"
    27   adding shopping
    30   adding shopping
       
    31 
    28   $ cd ..
    32   $ cd ..
    29   $ hg clone server client
    33   $ hg clone server client
    30   updating to branch default
    34   updating to branch default
    31   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    35   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    32   $ cd client
    36   $ cd client