# HG changeset patch # User Jeff Hammel # Date 1376176943 25200 # Node ID 56fa913491a1b6600b8c3023ad29b36029aed4a6 # Parent f39d37973d4b1c02c992d11f5f2f69732b0cd6e0 python/setup_repo.py diff -r f39d37973d4b -r 56fa913491a1 python/setup_repo.py --- a/python/setup_repo.py Sat Aug 10 15:52:22 2013 -0700 +++ b/python/setup_repo.py Sat Aug 10 16:22:23 2013 -0700 @@ -51,7 +51,7 @@ """ # parse remote URL - host, netloc, path, query, anchor = urlparse.urlsplit(options.remote_url) + host, netloc, path, query, anchor = urlparse.urlsplit(remote_url) if options.remote_path: remote_host = host if ':' in remote_path: @@ -62,7 +62,8 @@ # setup remote repository remote_dir = '%s/%s' % (path, name) command = ['ssh', host, "mkdir -p %s && cd %s && hg init" % (remote_dir, remote_dir)] - call(command) + print command + # call(command) def main(args=sys.argv[1:]): @@ -100,6 +101,7 @@ name = os.path.basename(directory) if options.remote_url: + # setup remote repository setup_remote(directory, options.remote_url, remote_path=options.remote_path) # push changes