Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

        def purge(control_config, hot_files):
    # change to the project directory, necessary to find the .flashbake file and
    # to correctly refer to the project files by relative paths
    os.chdir(hot_files.project_dir)

    git_obj = git.Git(hot_files.project_dir, control_config.git_path)

    # the wrapper object ensures git is on the path
    git_status = git_obj.status()

    _handle_fatal(hot_files, git_status)

    logging.debug("Examining git status.")
    for line in git_status.splitlines():
        _capture_deleted(hot_files, line)

    if len(hot_files.deleted) > 0:
        logging.info('Committing removal of known files, %s.' % hot_files.deleted)
        message_file = context.buildmessagefile(control_config)
        if not control_config.dry_run:
            # consolidate the commit to be friendly to how git normally works
            commit_output = git_obj.commit(message_file, hot_files.deleted)
            logging.debug(commit_output)
        os.remove(message_file)
        logging.info('Commit for deleted files complete.')
    else:
        logging.info('No deleted files to purge')
        


src/f/l/flashbake-0.27/src/flashbake/console.py   flashbake(Download)
        (hot_files, control_config) = control.prepare_control(hot_files, control_config)
        if options.purge:
            commit.purge(control_config, hot_files)
        else:
            commit.commit(control_config, hot_files, quiet_period)

src/f/l/flashbake-HEAD/src/flashbake/console.py   flashbake(Download)
        (hot_files, control_config) = control.prepare_control(hot_files, control_config)
        if options.purge:
            commit.purge(control_config, hot_files)
        else:
            commit.commit(control_config, hot_files, quiet_period)

src/f/l/flashbake-0.27/src/flashbake/plugins/scrivener.py   flashbake(Download)
    def post_process(self, to_commit, hot_files, config):
        flashbake.commit.purge(config, hot_files)
 
 
class ScrivenerWordcountFile(AbstractFilePlugin):

src/f/l/flashbake-HEAD/src/flashbake/plugins/scrivener.py   flashbake(Download)
    def post_process(self, to_commit, hot_files, config):
        flashbake.commit.purge(config, hot_files)
 
 
class ScrivenerWordcountFile(AbstractFilePlugin):