switch to a file just for extra extensions via script

Wed, 31 May 2017 21:57:35 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 31 May 2017 21:57:35 -0400
changeset 591
2ee456c483b0
parent 590
8d27d60a9cbc
child 592
d20033330f55

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
 

mercurial