enable.sh
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 20 Mar 2012 16:23:02 +0100
changeset 155 58301324ac96
parent 154 d3c3211fcfc4
child 157 b0ee408732cd
permissions -rwxr-xr-x
add a qsync-enable
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
134
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
     1
#!/bin/sh
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
     2
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
     3
here=`readlink -f "$0"`
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
     4
repo_root=`dirname "$here"`
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
     5
154
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
     6
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
     7
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
     8
cat << EOF >&2
155
58301324ac96 add a qsync-enable
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 154
diff changeset
     9
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
58301324ac96 add a qsync-enable
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 154
diff changeset
    10
XXX Add lines below to the [extensions] section of you hgrc XXX
58301324ac96 add a qsync-enable
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 154
diff changeset
    11
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
143
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
    12
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
    13
154
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    14
EOF
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    15
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    16
cat << EOF | sed -e "s#XXXREPOPATHXXX#${repo_root}#"
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    17
[extensions]
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    18
### experimental extensions for history rewriting
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    19
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    20
# obsolete relation support (will move in core)
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    21
obsolete=XXXREPOPATHXXX/hgext/obsolete.py
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    22
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    23
# history rewriting UI
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    24
evolve=XXXREPOPATHXXX/hgext/evolve.py
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    25
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    26
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    27
[alias]
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    28
### useful alias to check future amend result
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    29
# equivalent to the qdiff command for mq
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    30
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    31
# diff
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    32
pdiff=diff --rev .^
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    33
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    34
# status
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    35
pstatus=status --rev .^
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    36
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    37
# diff with the previous amend
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    38
odiff=diff --rev 'limit(obsparents(.),1)' --rev .
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    39
EOF
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    40
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    41
cat << EOF >&2
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    42
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    43
155
58301324ac96 add a qsync-enable
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 154
diff changeset
    44
### check qsync-enable.sh if your need mq export too.
154
d3c3211fcfc4 use cat in enable.sh
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 143
diff changeset
    45
EOF