bin/setup-hg-evolve

changeset 892
ede01ab376a7
parent 841
f5eaa175beb4
child 985
349ea9f736b9
equal deleted inserted replaced
891:7947270fa776 892:ede01ab376a7
1 #!/bin/bash 1 #!/bin/bash
2 set -eu -o pipefail 2 set -eu -o pipefail
3 3
4 if ! (command -v pip2 && pip2 -V) &>/dev/null; then 4 if ! (command -v pip3 && pip3 -V) &>/dev/null; then
5 curl -fsSL --compressed https://bootstrap.pypa.io/get-pip.py | 5 curl -fsSL --compressed https://bootstrap.pypa.io/get-pip.py |
6 python2 - --user 6 python3 - --user
7 fi 7 fi
8 8
9 pip2 install --user --upgrade hg-evolve 9 pip3 install --user --upgrade hg-evolve
10 10
11 if ! grep -qsw evolve ~/.hgext/hgrc; then 11 if ! grep -qsw evolve ~/.hgext/hgrc; then
12 printf '[extensions]\nevolve =\n' >> ~/.hgext/hgrc 12 printf '[extensions]\nevolve =\n' >> ~/.hgext/hgrc
13 fi 13 fi
14 14

mercurial