From 34e316ebc70011197bf918a07b2a7874c0a8e4cb Mon Sep 17 00:00:00 2001
From: Marco Villegas <marvil07@gmail.com>
Date: Tue, 1 Feb 2011 18:43:12 -0500
Subject: [PATCH 1/2] Operation controller bug: Avoid non-recognizing the label type on operation load.

Before this we were getting a tags instead of branches when $label->type
was set as (string) VERSIONCONTROL_LABEL_BRANCH.
---
 includes/controllers.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git includes/controllers.inc includes/controllers.inc
index e5cbbe9..b7bfc2d 100644
--- includes/controllers.inc
+++ includes/controllers.inc
@@ -505,7 +505,7 @@ class VersioncontrolOperationController extends VersioncontrolEntityController {
     foreach ($result as $label) {
       $label->repository = $this->options['repository'];
       $queried_entities[$label->vc_op_id]->labels[$label->name] = $this->backend
-        ->buildEntity($label->type === VERSIONCONTROL_LABEL_BRANCH ? 'branch' : 'tag', $label);
+        ->buildEntity($label->type == VERSIONCONTROL_LABEL_BRANCH ? 'branch' : 'tag', $label);
     }
   }
 }
-- 
1.7.2.3

