Wed, 31 May 2017 21:57:35 -0400
switch to a file just for extra extensions via script
.hgrc | file | annotate | diff | comparison | revisions | |
bin/setup-hg-evolve | file | annotate | diff | comparison | revisions |
--- a/.hgrc +++ b/.hgrc @@ -40,4 +40,5 @@ changeset = {desc}\n\n "HG: subrepo {subrepo}\n" } {splitlines(diff()) % 'HG: {line}\n'} +%include ~/.hgext/hgrc %include ~/.hgrc.local
--- 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