Пример #1
0
def main():

    config = load_config_file()
    # Set up logger
    log_file = config['log_file']
    if not log_file.endswith('.log'):
        log_file += '.log'
    FORMAT = '%(asctime)-15s %(message)s'
    logger.basicConfig(filename=log_file, level=logger.DEBUG, format=FORMAT)

    ccm, ccm_pool = start_sessions(config)
    history = load_history(config)

    ccm_hist = CCMHistory(ccm, ccm_pool, history, config['data_file'])
    history = ccm_hist.get_project_history(config['master'], config['base_project'])

#    if config.has_key('heads'):
#        for head in config['heads']:
#            history = ccm_hist.get_project_history(head, config['base_project'])
        
    fh = open(config['data_file'] + '.p', 'wb')
    cPickle.dump(history, fh, cPickle.HIGHEST_PROTOCOL)
    fh.close()

    logger.shutdown()
Пример #2
0
def main():

    config = load_config_file()
    # Set up logger
    log_file = config['log_file']
    if not log_file.endswith('.log'):
        log_file += '.log'
    FORMAT = '%(asctime)-15s %(message)s'
    logger.basicConfig(filename=log_file, level=logger.DEBUG, format=FORMAT)

    ccm, ccm_pool = start_sessions(config)
    history = load_history(config)

    ccm_hist = CCMHistory(ccm, ccm_pool, history, config['data_file'])
    history = ccm_hist.get_project_history(config['master'],
                                           config['base_project'])

    #    if config.has_key('heads'):
    #        for head in config['heads']:
    #            history = ccm_hist.get_project_history(head, config['base_project'])

    fh = open(config['data_file'] + '.p', 'wb')
    cPickle.dump(history, fh, cPickle.HIGHEST_PROTOCOL)
    fh.close()

    logger.shutdown()
Пример #3
0
def main():

    config = load_config_file()
    ccm, ccm_pool = start_sessions(config)
    history = load_history(config)

    ccm_hist = CCMHistory(ccm, ccm_pool, history, config['data_file'])
    history = ccm_hist.get_project_history(config['master'], config['base_project'])

    if config.has_key('heads'):
        for head in config['heads']:
            history = ccm_hist.get_project_history(head, config['base_project'])
        
    fh = open(config['data_file'] + '.p', 'wb')
    cPickle.dump(history, fh, cPickle.HIGHEST_PROTOCOL)
    fh.close()
Пример #4
0
def main():

    config = load_config_file()
    populate_cache_with_projects(config)
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of the Nokia nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.    IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""

import cPickle
import ccm_history_to_graphs as cg
import ccm_fast_export as cfe
from load_configuration import load_config_file

data_file = load_config_file()['data_file']
data_file += '.p'
f = open(data_file, 'rb')
history = cPickle.load(f)
f.close()

cgraphs = cg.create_graphs_from_releases(history)

cfe.ccm_fast_export(history, cgraphs)


Пример #6
0
Neither the name of the Nokia nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.    IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""

import cPickle
import ccm_history_to_graphs as cg
import ccm_fast_export as cfe
from load_configuration import load_config_file
import logging as logger

config = load_config_file()
# Set up logger
log_file = config['log_file']
log_file += '-export.log'
logger.basicConfig(filename=log_file, level=logger.DEBUG)
data_file = config['data_file']
data_file += '.p'
f = open(data_file, 'rb')
history = cPickle.load(f)
f.close()

cgraphs = cg.create_graphs_from_releases(history)

cfe.ccm_fast_export(history, cgraphs)

Пример #7
0
def main():

    logger.basicConfig(filename='populate.log', level=logger.DEBUG)
    config = load_config_file()
    populate_cache_with_projects(config)
Пример #8
0
def main():

    logger.basicConfig(filename='populate.log',level=logger.DEBUG)
    config = load_config_file()
    populate_cache_with_projects(config)