module TFSGraph::Behaviors::RelatedRepository::Branch
Public Instance Methods
absolute_root_for(branch)
click to toggle source
# File lib/tfs_graph/behaviors/related_repository/branch.rb, line 9 def absolute_root_for(branch) root = branch proj = project_for_branch branch until(root.master?) do root = proj.branches.detect {|b| b.path == root.root } end root end
find_in_project(project, path)
click to toggle source
# File lib/tfs_graph/behaviors/related_repository/branch.rb, line 5 def find_in_project(project, path) project.branches.detect {|b| b.path == path } end
project_for_branch(branch)
click to toggle source
# File lib/tfs_graph/behaviors/related_repository/branch.rb, line 20 def project_for_branch(branch) RepositoryRegistry.instance.project_repository.find_by_name branch.project end