cwctl.py
changeset 8930 6a02be304486
parent 8851 0020aa12af07
child 9001 328c24289253
equal deleted inserted replaced
8929:b747f2532e03 8930:6a02be304486
   834       identifiers of the instances to list versions for.
   834       identifiers of the instances to list versions for.
   835     """
   835     """
   836     name = 'versions'
   836     name = 'versions'
   837 
   837 
   838     def versions_instance(self, appid):
   838     def versions_instance(self, appid):
   839         from logilab.common.changelog import Version
       
   840         config = cwcfg.config_for(appid)
   839         config = cwcfg.config_for(appid)
   841         # should not raise error if db versions don't match fs versions
   840         # should not raise error if db versions don't match fs versions
   842         config.repairing = True
   841         config.repairing = True
   843         if hasattr(config, 'set_sources_mode'):
   842         if hasattr(config, 'set_sources_mode'):
   844             config.set_sources_mode(('migration',))
   843             config.set_sources_mode(('migration',))