# HG changeset patch # User Jeff Hammel # Date 1375180351 25200 # Node ID c00b70509ffff2f1ac22c41841a2a0e32722be1d # Parent f652f9d4765b171a113b25290af3b1a44e7775e1 flesh out diff -r f652f9d4765b -r c00b70509fff python/setup_repo.py --- a/python/setup_repo.py Tue Jul 30 03:30:30 2013 -0700 +++ b/python/setup_repo.py Tue Jul 30 03:32:31 2013 -0700 @@ -78,8 +78,8 @@ # write local .hgrc file # TODO: use ConfigParser - f = file(os.path.join('.hg', 'hgrc'), 'w') - print >> f, HGRC % { 'host': HOST, 'repo': repo, 'name': name} + with file(os.path.join(directory, '.hg', 'hgrc'), 'w') as f: + print >> f, HGRC % { 'host': host, 'repo': repo, 'name': name} # push changes call(['hg', 'push', '-R', directory])