Allura/allura/model/repo_refresh.py
def refresh_commit_trees(ci, cache):
    '''Refresh the list of trees included withn a commit'''
    if ci.tree_id is None:
        return cache
    trees_doc = TreesDoc(dict(
        _id=ci._id,
        tree_ids=list(trees(ci.tree_id, cache))))
    trees_doc.m.save(safe=False)
    new_cache = dict(
        (oid, cache[oid])
        for oid in trees_doc.tree_ids)
    return new_cache
Refresh the list of trees included withn a commit
Refresh the list of trees included withn a commit
Refresh the list of trees included withn a commit
def refresh_commit_trees(ci, cache):
    if ci.tree_id is None:
        return cache
    trees_doc = TreesDoc(dict(
        _id=ci._id,
        tree_ids=list(trees(ci.tree_id, cache))))
    trees_doc.m.save(safe=False)
    new_cache = dict(
        (oid, cache[oid])
        for oid in trees_doc.tree_ids)
    return new_cache
def refresh_commit_trees ( ci , cache ) : if ci . tree_id is None : return cache trees_doc = TreesDoc ( dict ( _id = ci . _id , tree_ids = list ( trees ( ci . tree_id , cache ) ) ) ) trees_doc . m . save ( safe = False ) new_cache = dict ( ( oid , cache [ oid ] ) for oid in trees_doc . tree_ids ) return new_cache
Refresh the list of trees included withn a commit
Refresh the list of trees included withn a commit
'''Refresh the list of trees included withn a commit'''
ci
cache