changeset 51:1aacc851332b

add sensible ~/hg/hgrc file
author Jeff Hammel <k0scist@gmail.com>
date Sun, 28 Mar 2010 16:06:50 -0400
parents abe2508386ac
children ac08d765aa32
files python/install_config.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/python/install_config.py	Sun Mar 28 15:38:39 2010 -0400
+++ b/python/install_config.py	Sun Mar 28 16:06:50 2010 -0400
@@ -17,6 +17,8 @@
 commands = [ ['hg', 'init'],
              ['hg', 'pull', SRC],
              ['hg', 'update', '-C'],
+
+             # get virtual env
              ['hg', 'clone', 'http://bitbucket.org/ianb/virtualenv'],
              ['ln' '-s', HOME + '/virtualenv/virtualenv.py', HOME + '/bin/'],
 
@@ -34,6 +36,7 @@
             sys.exit(code)
 
 execute(*commands)
+subprocess.call('/bin/echo -e "[paths]\\ndefault = http://k0s.org/hg/config\\ndefault-push = ssh://k0s.org/hg/config" > ~/.hg/hgrc', shell=True)
 
 def install_develop(package):
     src = 'http://k0s.org/hg/%s' % package