Allura/allura/model/repo_refresh.py
def _pull_tree(cache, tree_id, *context):
    '''
    Since the Tree instances stick around in our cache,
    subsequent calls to set_context are overwriting our
    in-use copies and confusing the walk.  So, make an
    memory-only copy for our use.
    '''
    cache_tree = cache.get(Tree, dict(_id=tree_id))
    new_tree = Tree(
        _id=cache_tree._id,
        tree_ids=cache_tree.tree_ids,
        blob_ids=cache_tree.blob_ids,
        other_ids=cache_tree.other_ids,
    )
    session(new_tree).expunge(new_tree)
    new_tree.set_context(*context)
    return new_tree

    Since the Tree instances stick around in our cache,
    subsequent calls to set_context are overwriting our
    in-use copies and confusing the walk.  So, make an
    memory-only copy for our use.
    
Since the Tree instances stick around in our cache,
subsequent calls to set_context are overwriting our
in-use copies and confusing the walk.  So, make an
memory-only copy for our use.
Since the Tree instances stick around in our cache subsequent calls to set_context are overwriting our in - use copies and confusing the walk . So make an memory - only copy for our use .
def _pull_tree(cache, tree_id, *context):
    cache_tree = cache.get(Tree, dict(_id=tree_id))
    new_tree = Tree(
        _id=cache_tree._id,
        tree_ids=cache_tree.tree_ids,
        blob_ids=cache_tree.blob_ids,
        other_ids=cache_tree.other_ids,
    )
    session(new_tree).expunge(new_tree)
    new_tree.set_context(*context)
    return new_tree
def _pull_tree ( cache , tree_id , * context ) : cache_tree = cache . get ( Tree , dict ( _id = tree_id ) ) new_tree = Tree ( _id = cache_tree . _id , tree_ids = cache_tree . tree_ids , blob_ids = cache_tree . blob_ids , other_ids = cache_tree . other_ids , ) session ( new_tree ) . expunge ( new_tree ) new_tree . set_context ( * context ) return new_tree
Since the Tree instances stick around in our cache,
subsequent calls to set_context are overwriting our
in-use copies and confusing the walk.
Since the Tree instances stick around in our cache subsequent calls to set_context are overwriting our in - use copies and confusing the walk .
'''
    Since the Tree instances stick around in our cache,
    subsequent calls to set_context are overwriting our
    in-use copies and confusing the walk.  So, make an
    memory-only copy for our use.
    '''
cache
tree_id