changeset 450:56fa913491a1

python/setup_repo.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 16:22:23 -0700
parents f39d37973d4b
children 96859ac4d23f
files python/setup_repo.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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