bin/setup-hg-evolve

changeset 591
2ee456c483b0
parent 356
85890bd248ed
child 839
0beae3c33263
--- a/bin/setup-hg-evolve
+++ b/bin/setup-hg-evolve
@@ -5,6 +5,8 @@ if [ -d ~/.hgext/evolve ]; then
   hg -R ~/.hgext/evolve fetch
 else
   hg clone https://www.mercurial-scm.org/repo/evolve ~/.hgext/evolve
-  printf '[extensions]\nevolve = ~/.hgext/evolve/hgext/evolve.py\n' >> ~/.hgrc.local
+
+  [ -f ~/.hgext/hgrc ] || echo '[extensions]' > ~/.hgext/hgrc
+  echo 'evolve = ~/.hgext/evolve/hgext3rd/evolve' >> ~/.hgext/hgrc
 fi
 

mercurial