comparison python/setup_repo.py @ 528:b8857facac02

python/setup_repo.py
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 24 Sep 2013 13:16:23 -0700
parents 76b1723c87fc
children 9cf7d5cc9c2b
comparison
equal deleted inserted replaced
527:76b1723c87fc 528:b8857facac02
90 remote_host, remote_path = remote_path.split(':', 1) 90 remote_host, remote_path = remote_path.split(':', 1)
91 else: 91 else:
92 remote_path = path 92 remote_path = path
93 93
94 # setup remote repository 94 # setup remote repository
95 remote_dir = '~/%s/%s' % (path.lstrip('/'), name) 95 remote_dir = '~/%s' % (path.lstrip('/'), name)
96 command = ['ssh', host, "mkdir -p %s && cd %s && hg init" % (remote_dir, remote_dir)] 96 command = ['ssh', host, "mkdir -p %s && cd %s && hg init" % (remote_dir, remote_dir)]
97 call(command) 97 call(command)
98 98
99 99
100 def main(args=sys.argv[1:]): 100 def main(args=sys.argv[1:]):