Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Retrieves history of commit for given repository.
@return: List of Commit tuples

        def retrieve_commit_history(directory, vcs_name=None, interval=None):
    ''' Retrieves history of commit for given repository.
    @return: List of Commit tuples
    '''
    vcs_name = vcs_name or detect_vcs(directory)
    if not vcs_name:
        raise ValueError, "Could not find any known version control system in given directory"

    interval = interval or (None, None)

    history_func = globals().get(vcs_name + '_history')
    if not history_func:
        raise ValueError, "Version control system '%s' is not supported" % vcs_name

    history = history_func(directory, interval)
    return sorted(history, key=lambda c: c.time, reverse=True)
        


src/c/o/coded4-0.3.3/coded4/__main__.py   coded4(Download)
def calculate_statistics(args):
    ''' Calculates statistics, as dictated by command line args.
    @return: List of Contributor tuples
    '''
    commit_history = vcs.retrieve_commit_history(args.directory, args.vcs, (args.since, args.until))