/**
  * Record differences for two branches.
  * @param PROJECT_ENTRY_BRANCH_INFO $orig_branch
  * @param PROJECT_ENTRY_BRANCH_INFO $new_branch
  * @access private
  */
 protected function _record_branch_differences($orig_branch, $new_branch)
 {
     if ($orig_branch->release_id != $new_branch->release_id) {
         $branch_title = $orig_branch->title_as_plain_text();
         $this->_record_object_difference("Release for branch [{$branch_title}]", $orig_branch->release(), $new_branch->release(), 'Current');
     }
 }
 /**
  * Draw the "path" to the entry.
  * Takes the visibility properties into account to determine whether to show
  * the component/project/release/branch.
  * @param PROJECT_ENTRY $obj
  * @param PROJECT_ENTRY_BRANCH_INFO $branch_info
  */
 protected function _draw_context_in_project_for($obj, $branch_info)
 {
     if ($this->show_folder || $this->show_branch || $this->show_release || $this->show_component) {
         $menu = $this->context->make_menu();
         $menu->renderer->separator_class = $this->app->display_options->object_class;
         if ($this->show_folder) {
             $folder = $obj->parent_folder();
             $menu->append($folder->title_as_link());
         }
         if ($this->show_component && $obj->component_id) {
             $comp = $obj->component();
             $menu->append($comp->title_as_link());
         }
         if ($this->show_branch) {
             $branch = $obj->main_branch();
             $menu->append($branch->title_as_link());
         }
         if ($this->show_release) {
             $rel = $branch_info->release();
             if (isset($rel)) {
                 $menu->append($rel->title_as_link());
             }
         }
         $menu->display();
     }
 }