enable.sh
branchstable
changeset 499 a9c27df23129
parent 476 f17a0f801e0b
parent 498 53d7e3413337
child 500 4387e62bd4f4
equal deleted inserted replaced
476:f17a0f801e0b 499:a9c27df23129
     1 #!/bin/sh
       
     2 
       
     3 here=`python -c "import os; print os.path.realpath('$0')"`
       
     4 repo_root=`dirname "$here"`
       
     5 
       
     6 if !( hg --version -q | grep -qe 'version 2\.[2-9]' ); then
       
     7     echo 'You need mercurial 2.2 or later' >&2
       
     8     exit 2
       
     9 fi
       
    10 
       
    11 
       
    12 
       
    13 cat << EOF >&2
       
    14 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
       
    15 XXX Add lines below to the [extensions] section of you hgrc XXX
       
    16 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
       
    17 
       
    18 
       
    19 EOF
       
    20 
       
    21 cat << EOF | sed -e "s#XXXREPOPATHXXX#${repo_root}#"
       
    22 [extensions]
       
    23 ### experimental extensions for history rewriting
       
    24 
       
    25 # obsolete relation support (will move in core)
       
    26 obsolete=XXXREPOPATHXXX/hgext/obsolete.py
       
    27 
       
    28 # history rewriting UI
       
    29 # needed by evolve
       
    30 hgext.rebase=
       
    31 evolve=XXXREPOPATHXXX/hgext/evolve.py
       
    32 
       
    33 
       
    34 [alias]
       
    35 ### useful alias to check future amend result
       
    36 # equivalent to the qdiff command for mq
       
    37 
       
    38 # diff
       
    39 pdiff=diff --rev .^
       
    40 
       
    41 # status
       
    42 pstatus=status --rev .^
       
    43 
       
    44 # diff with the previous amend
       
    45 odiff=diff --rev 'limit(precursors(.),1)' --rev .
       
    46 EOF
       
    47 
       
    48 cat << EOF >&2
       
    49 
       
    50 
       
    51 ### check qsync-enable.sh if your need mq export too.
       
    52 EOF