<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,4 +5,4 @@ class BuilderError &lt; RuntimeError
     super message
     @status = status
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/builder_error.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,8 @@
 #
 # (this plugin is built in and needs no customization)
 #
+require 'builder_error'
+
 class BuilderStatus
   def initialize(project)
     @project = project</diff>
      <filename>lib/builder_plugins/builder_status.rb</filename>
    </modified>
    <modified>
      <diff>@@ -40,17 +40,17 @@ module SourceControl
       Git::LogParser.new.parse(git_output).first
     end
 
-    def update
-      git(&quot;reset&quot;, [&quot;--hard&quot;, &quot;origin/master&quot;])
+    def update(revision)
+      git(&quot;reset&quot;, [&quot;--hard&quot;, revision.number])
     end
 
     def up_to_date?(reasons = [])
       _new_revisions = new_revisions
       if _new_revisions.empty?
-        return false
+        return true
       else
         reasons &lt;&lt; _new_revisions
-        return true
+        return false
       end
     end
 </diff>
      <filename>lib/source_control/git.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ module SourceControl
       def parse(log)
         @result = []
 
-        log.each_line do |line|
+        log.each do |line|
           line.chomp!
           line == &quot;&quot; ? next : process_line(line)
         end</diff>
      <filename>lib/source_control/git/log_parser.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,7 @@ EOF
                               'e51d66aa4f708fff1c87eb9afc9c48eaa8d5ffce',
                               'Alexey Verkhovsky &lt;alexey.verkhovsky@gmail.com&gt;',
                               Time.at(1209921867))
-      revisions = Git::LogParser.new.parse(SIMPLE_LOG_ENTRY)
+      revisions = Git::LogParser.new.parse(SIMPLE_LOG_ENTRY.split(&quot;\n&quot;))
       assert_equal [expected_revision], revisions
 
       assert_equal expected_revision.number, revisions.first.number</diff>
      <filename>test/unit/source_control/git/log_parser_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -49,7 +49,7 @@ class SourceControl::GitTest &lt; Test::Unit::TestCase
       mock_parser.expects(:parse).with(&quot;\n&quot;).returns([])
       Git::LogParser.expects(:new).returns(mock_parser)
 
-      assert_true git.up_to_date?
+      assert git.up_to_date?
     end
   end
 </diff>
      <filename>test/unit/source_control/git_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -242,7 +242,7 @@ module Dependencies #:nodoc:
     qualified_name = qualified_name_for from_mod, const_name
     path_suffix = qualified_name.underscore
     name_error = NameError.new(&quot;uninitialized constant #{qualified_name}&quot;)
-    
+
     file_path = search_for_file(path_suffix)
     if file_path &amp;&amp; ! loaded.include?(File.expand_path(file_path)) # We found a matching file to load
       require_or_load file_path
@@ -259,6 +259,7 @@ module Dependencies #:nodoc:
       begin
         return parent.const_missing(const_name)
       rescue NameError =&gt; e
+
         raise unless e.missing_name? qualified_name_for(parent, const_name)
         raise name_error
       end</diff>
      <filename>vendor/rails/activesupport/lib/active_support/dependencies.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b8c0ce1c3fa52f30b5058579082d7782df623c1a</id>
    </parent>
  </parents>
  <author>
    <name>Alexey Verkhovsky</name>
    <email>alexey.verkhovsky@gmail.com</email>
  </author>
  <url>http://github.com/willbryant/cruisecontrolrb/commit/edd69e845006da75398f3f80b41526dca13e9fee</url>
  <id>edd69e845006da75398f3f80b41526dca13e9fee</id>
  <committed-date>2008-05-05T17:07:41-07:00</committed-date>
  <authored-date>2008-05-05T17:07:41-07:00</authored-date>
  <message>messing around with things</message>
  <tree>d7a0034af212b3cca510e7a135813c0371017caa</tree>
  <committer>
    <name>Alexey Verkhovsky</name>
    <email>alexey.verkhovsky@gmail.com</email>
  </committer>
</commit>
