backport change from default to get -f option on cw shell, may be necessary for the forthcoming migration... stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 18 Aug 2009 17:10:08 +0200
branchstable
changeset 2905 b23bbb31368c
parent 2904 b9d3f7f884ce
child 2906 677fa98659a8
backport change from default to get -f option on cw shell, may be necessary for the forthcoming migration...
cwctl.py
--- a/cwctl.py	Tue Aug 18 14:27:27 2009 +0200
+++ b/cwctl.py	Tue Aug 18 17:10:08 2009 +0200
@@ -716,7 +716,13 @@
 sources for migration will be automatically selected.",
           }),
 
+        ('force',
+         {'short': 'f', 'action' : 'store_true',
+          'default' : False,
+          'help': 'don\'t check instance is up to date.'}
+         ),
         )
+
     def run(self, args):
         appid = pop_arg(args, 99, msg="No instance specified !")
         config = cwcfg.config_for(appid)
@@ -728,6 +734,7 @@
         else:
             sources = ('all',)
         config.set_sources_mode(sources)
+        config.repairing = self.config.force
         mih = config.migration_handler()
         if args:
             for arg in args: