changeset 460:3cd5996c1329

python/setup_repo.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 18:13:14 -0700
parents 32667483d1c5
children fba923298346
files python/setup_repo.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/python/setup_repo.py	Sat Aug 10 18:11:44 2013 -0700
+++ b/python/setup_repo.py	Sat Aug 10 18:13:14 2013 -0700
@@ -34,6 +34,7 @@
         command_str = ' '.join(command)
     print 'Running:\n%s' % (command_str)
     if globals()['dry_run']:
+        import pdb; pdb.set_trace()
         return
     return subprocess.check_output(*args, **kwargs)
 
@@ -93,8 +94,7 @@
     # setup remote repository
     remote_dir = '~/%s/%s' % (path.lstrip('/'), name)
     command = ['ssh', host, "mkdir -p %s && cd %s && hg init" % (remote_dir, remote_dir)]
-    print command
-    #    call(command)
+    call(command)
 
 
 def main(args=sys.argv[1:]):
@@ -141,8 +141,7 @@
 
         # push changes
         command = ['hg', 'push', '-R', directory]
-        print command
-        # call(command)
+        call(command)
 
 if __name__ == '__main__':
   main()