class TFSGraph::Populators::ForArchivedBranch
incremental updates for a branch and its changesets does not update merges. have to do that once all changesets for a project are fetched
Public Class Methods
new(project, branch)
click to toggle source
# File lib/tfs_graph/populators/for_archived_branch.rb, line 10 def initialize(project, branch) @project = project @branch = branch @changeset_store = ChangesetStore.new(branch) end
Public Instance Methods
populate()
click to toggle source
# File lib/tfs_graph/populators/for_archived_branch.rb, line 17 def populate return @branch.changesets unless @branch.changesets.empty? all_changesets = @changeset_store.fetch_and_cache ChangesetTreeBuilder.to_tree(@branch, all_changesets.sort) @branch.updated! all_changesets end