tests/test-tutorial.t
branchstable
changeset 766 32936a9f4389
parent 750 ddbea2fdee5e
child 767 01a270481a61
equal deleted inserted replaced
765:015cd9d3bfdd 766:32936a9f4389
     5 This Mercurial configuration example is used for testing.
     5 This Mercurial configuration example is used for testing.
     6 .. Various setup
     6 .. Various setup
     7 
     7 
     8   $ cat >> $HGRCPATH << EOF
     8   $ cat >> $HGRCPATH << EOF
     9   > [ui]
     9   > [ui]
       
    10   > # This is change the default output of log for clear tutorial
    10   > logtemplate ="{node|short} ({phase}): {desc}\n"
    11   > logtemplate ="{node|short} ({phase}): {desc}\n"
    11   > [diff]
    12   > [diff]
       
    13   > # use "git" diff format, clearer and smarter format
    12   > git = 1
    14   > git = 1
    13   > [alias]
    15   > [alias]
    14   > # "-d '0 0'" means that the new commit will be at January 1st 1970.
    16   > # "-d '0 0'" means that the new commit will be at January 1st 1970.
    15   > # This is used for stable hash during test
    17   > # This is used for stable hash during test
       
    18   > # (this tutorial is automatically tested.)
    16   > amend = amend -d '0 0'
    19   > amend = amend -d '0 0'
    17   > EOF
    20   > EOF
    18 
    21 
    19   $ hg init local
    22   $ hg init local
    20   $ cat >> local/.hg/hgrc << EOF
    23   $ cat >> local/.hg/hgrc << EOF
    42 
    45 
    43 This tutorial uses the following configuration for Mercurial:
    46 This tutorial uses the following configuration for Mercurial:
    44 
    47 
    45 A compact log template with phase data:
    48 A compact log template with phase data:
    46 
    49 
    47   $ hg showconfig ui
    50   $ hg showconfig ui | grep log
    48   ui.slash=True
       
    49   ui.logtemplate="{node|short} ({phase}): {desc}\n"
    51   ui.logtemplate="{node|short} ({phase}): {desc}\n"
    50 
    52 
    51 Improved git format diff:
    53 Improved git format diff:
    52 
    54 
    53   $ hg showconfig diff
    55   $ hg showconfig diff
    55 
    57 
    56 And of course, we enable the experimental extensions for mutable history:
    58 And of course, we enable the experimental extensions for mutable history:
    57 
    59 
    58   $ cat >> $HGRCPATH <<EOF
    60   $ cat >> $HGRCPATH <<EOF
    59   > [extensions]
    61   > [extensions]
       
    62   > evolve = $TESTDIR/../hgext/evolve.py
       
    63   > # enabling rebase is also needed for now
    60   > rebase =
    64   > rebase =
    61   > evolve = $TESTDIR/../hgext/evolve.py
       
    62   > EOF
    65   > EOF
    63 
    66 
    64 -----------------------
    67 -----------------------
    65 Single Developer Usage
    68 Single Developer Usage
    66 -----------------------
    69 -----------------------