annotate enable.sh @ 144:f387658d6d22

Add a bosancestors revset
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 08 Mar 2012 14:15:53 +0100
parents 0599fb01dc41
children d3c3211fcfc4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
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
143
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
6 # I gotta change this for cat soon
134
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
7 echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" >&2
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
8 echo "XXX Add the line below to the [extensions] section of you hgrc XXX" >&2
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
9 echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" >&2
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
10 echo >&2
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
11 echo >&2
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
12 echo "[extensions]"
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
13 echo "### experimental extensions for history rewriting"
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
14 echo
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
15 echo "# obsolete relation support (will move in core)"
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
16 echo "obsolete=${repo_root}/hgext/obsolete.py"
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
17 echo
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
18 echo "# history rewriting UI"
70c9e415242b add a simple script to help people enabling the extension.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
19 echo "evolve=${repo_root}/hgext/evolve.py"
143
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
20 echo
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
21 echo
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
22 echo '[alias]'
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
23 echo "### useful alias to check future amend result"
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
24 echo "# equivalent to the qdiff command for mq"
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
25 echo
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
26 echo "# diff"
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
27 echo 'pdiff=diff --rev .^'
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
28 echo
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
29 echo "# status"
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
30 echo 'pstatus=status --rev .^'
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
31 echo
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
32 echo "# diff with the previous amend"
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
33 echo "odiff=diff --rev 'limit(obsparents(.),1)' --rev ."
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
34
0599fb01dc41 add an obsolete parent revset and related alias
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 134
diff changeset
35