3 |
3 |
4 if [ -d ~/.hgext/evolve ]; then |
4 if [ -d ~/.hgext/evolve ]; then |
5 hg -R ~/.hgext/evolve fetch |
5 hg -R ~/.hgext/evolve fetch |
6 else |
6 else |
7 hg clone https://www.mercurial-scm.org/repo/evolve ~/.hgext/evolve |
7 hg clone https://www.mercurial-scm.org/repo/evolve ~/.hgext/evolve |
8 printf '[extensions]\nevolve = ~/.hgext/evolve/hgext/evolve.py\n' >> ~/.hgrc.local |
8 |
|
9 [ -f ~/.hgext/hgrc ] || echo '[extensions]' > ~/.hgext/hgrc |
|
10 echo 'evolve = ~/.hgext/evolve/hgext3rd/evolve' >> ~/.hgext/hgrc |
9 fi |
11 fi |
10 |
12 |