Allura/allura/model/repo_refresh.py
def compute_lcds(commit, model_cache, lcid_cache):
    '''
    Compute LastCommit data for every Tree node under this tree.
    '''
    trees = model_cache.get(TreesDoc, dict(_id=commit._id))
    if not trees:
        log.error('Missing TreesDoc for %s; skipping compute_lcd' % commit)
        return
    with h.push_config(c, model_cache=model_cache, lcid_cache=lcid_cache):
        _update_tree_cache(trees.tree_ids, model_cache)
        tree = _pull_tree(model_cache, commit.tree_id, commit)
        _compute_lcds(tree, model_cache)
        for changed_path in tree.commit.changed_paths:
            lcid_cache[changed_path] = tree.commit._id

    Compute LastCommit data for every Tree node under this tree.
    
Compute LastCommit data for every Tree node under this tree.
Compute LastCommit data for every Tree node under this tree .
def compute_lcds(commit, model_cache, lcid_cache):
    trees = model_cache.get(TreesDoc, dict(_id=commit._id))
    if not trees:
        log.error('Missing TreesDoc for %s; skipping compute_lcd' % commit)
        return
    with h.push_config(c, model_cache=model_cache, lcid_cache=lcid_cache):
        _update_tree_cache(trees.tree_ids, model_cache)
        tree = _pull_tree(model_cache, commit.tree_id, commit)
        _compute_lcds(tree, model_cache)
        for changed_path in tree.commit.changed_paths:
            lcid_cache[changed_path] = tree.commit._id
def compute_lcds ( commit , model_cache , lcid_cache ) : trees = model_cache . get ( TreesDoc , dict ( _id = commit . _id ) ) if not trees : log . error ( 'Missing TreesDoc for %s; skipping compute_lcd' % commit ) return with h . push_config ( c , model_cache = model_cache , lcid_cache = lcid_cache ) : _update_tree_cache ( trees . tree_ids , model_cache ) tree = _pull_tree ( model_cache , commit . tree_id , commit ) _compute_lcds ( tree , model_cache ) for changed_path in tree . commit . changed_paths : lcid_cache [ changed_path ] = tree . commit . _id
Compute LastCommit data for every Tree node under this tree.
Compute LastCommit data for every Tree node under this tree .
'''
    Compute LastCommit data for every Tree node under this tree.
    '''
commit
model_cache
lcid_cache