Class: TFSGraph::Populators::SinceLast
- Inherits:
-
Object
- Object
- TFSGraph::Populators::SinceLast
- Includes:
- Utilities
- Defined in:
- lib/tfs_graph/populators/since_last.rb
Constant Summary
Constants included from StoreHelpers
Instance Method Summary collapse
Methods included from Utilities
#clean, #collect_branches, #collect_changesets, #collect_merges, #collect_projects, #finalize, #generate_branch_tree
Methods included from StoreHelpers
#flush_all, #last_updated_on, #mark_as_updated
Instance Method Details
#populate ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/tfs_graph/populators/since_last.rb', line 6 def populate ProjectStore.all_cached.map do |project| new_changesets = project.active_branches.map {|branch| collect_changesets branch, :cache_since_last_update} new_branches = BranchStore.new(project).cache_since_last_update new_changesets.concat new_branches.map {|branch| collect_changesets branch } # recache and reassociate all merges for all branches. # should not lead to dupes thanks to Related new_branches.concat(project.branches).each do |branch| collect_merges(branch) BranchAssociator.associate(branch.changesets) end end finalize end |