changeset 458:483b4237d9a2

python/setup_repo.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 18:10:16 -0700
parents cdad4c445993
children 32667483d1c5
files python/setup_repo.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/setup_repo.py	Sat Aug 10 18:07:02 2013 -0700
+++ b/python/setup_repo.py	Sat Aug 10 18:10:16 2013 -0700
@@ -23,7 +23,7 @@
 string = (basestring,)
 
 # global variables that probably shouldn't be
-dry_run = True
+dry_run = True # XXX instead, should have runner class
 verbose = True
 
 def call(command, *args, **kwargs):
@@ -122,6 +122,7 @@
         parser.print_usage()
         parser.exit()
     directory = args[0]
+    globals()['dry_run'] = options.dry_run
 
     # initialize repository
     if options.remote_only: