# File lib/repo.rb, line 233 def findStableBase(branch) base=nil if branch =~ @branch_format then base = branch.gsub(/^\*?\s*#{@branch_format_raw}\/.*$/, @stable_base_format) end @stable_base_patterns.each(){|pattern, b| if branch =~ /#{pattern}\// || branch =~ /#{pattern}$/ base = b break end } raise("Could not a find a stable base for branch #{branch}") if base == nil return base end