Mercurial > hg > config
comparison python/install_config.py @ 251:c37750a70f94
no need for subversion config anymore
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Tue, 04 Dec 2012 11:02:45 -0800 |
| parents | aa31dc7ccb66 |
| children | 06fcec56e8fe |
comparison
equal
deleted
inserted
replaced
| 250:6f3d12f17847 | 251:c37750a70f94 |
|---|---|
| 16 # go home | 16 # go home |
| 17 HOME=os.environ['HOME'] | 17 HOME=os.environ['HOME'] |
| 18 os.chdir(HOME) | 18 os.chdir(HOME) |
| 19 | 19 |
| 20 commands = [ # make the home directory a repository | 20 commands = [ # make the home directory a repository |
| 21 ['hg', 'init'], | 21 ['hg', 'init'], |
| 22 ['hg', 'pull', SRC], | 22 ['hg', 'pull', SRC], |
| 23 ['hg', 'update', '-C'], | 23 ['hg', 'update', '-C'], |
| 24 | 24 ] |
| 25 # site-specific files | |
| 26 ['mkdir', '-p', '.subversion'], | |
| 27 ['rm', '-f', '.subversion/config'], | |
| 28 ['ln', '-s', os.path.join(HOME, '.subversion_config/config'), os.path.join(HOME, '.subversion/config')], | |
| 29 ] | |
| 30 | 25 |
| 31 def execute(*commands): | 26 def execute(*commands): |
| 32 """execute a series of commands""" | 27 """execute a series of commands""" |
| 33 for command in commands: | 28 for command in commands: |
| 34 print ' '.join(command) | 29 print ' '.join(command) |
