<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -39,6 +39,7 @@ class Project
     @error_message = ''
     @triggers = [ChangeInSourceControlTrigger.new(self)]
     instantiate_plugins
+    scm.project = self if scm.respond_to? :project=
   end
   
   def source_control=(value)
@@ -443,7 +444,7 @@ class Project
   def create_build_label(revision_number)
     revision_number = revision_number.to_s
     if revision_number.length &gt; MAX_BUILD_LABEL_LENGTH
-	revision_number = revision_number[0, MAX_BUILD_LABEL_LENGTH] + '...'
+	      revision_number = revision_number[0, MAX_BUILD_LABEL_LENGTH] + '...'
     end
 
     build_labels = builds.map { |b| b.label }
@@ -490,7 +491,7 @@ def plugin_loader.load_plugin(plugin_path)
   plugin_is_directory = (plugin_file == 'init')  
   plugin_name = plugin_is_directory ? File.basename(File.dirname(plugin_path)) : plugin_file
 
-  CruiseControl::Log.debug(&quot;Loading plugin #{plugin_name}&quot;)
+  CruiseControl::Log.info(&quot;Loading plugin #{plugin_name}&quot;)
   if RAILS_ENV == 'development'
     load plugin_path
   else
@@ -515,7 +516,7 @@ def plugin_loader.load_all
       if File.file?(init_path)
         load_plugin(init_path)
       else
-        log.error(&quot;No init.rb found in plugin directory #{plugin}&quot;)
+        CruiseControl::Log.error(&quot;No init.rb found in plugin directory #{plugin}&quot;)
       end
     else
       # a path is neither file nor directory. whatever else it may be, let's ignore it.</diff>
      <filename>app/models/project.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,6 @@ class Revision
     &lt;&lt;-EOL
 Revision #{number} committed by #{committed_by} on #{time.strftime('%Y-%m-%d %H:%M:%S') if time}
 #{message}
-#{changeset ? changeset.collect { |entry| entry.to_s }.join(&quot;\n&quot;) : nil}
     EOL
   end
 </diff>
      <filename>app/models/revision.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,30 +2,31 @@ require 'rubygems'
 require 'grit'
 
 class GitRevision &lt; Revision
-  attr_accessor :commit
+  attr_accessor :commit,:message
   
   def initialize(commit)
     @commit = commit
   end
   
   def number
-    @commit.id
+    @commit.id_abbrev
   end
   
-  def author
+  def committed_by
     @commit.author
   end
   
   def time
     @commit.authored_date
   end
+  
 end
 
 class Git
   include Grit
   include CommandLine
   
-  attr_accessor :url, :path, :username, :password, :branch
+  attr_accessor :url, :path, :username, :password, :branch, :project
   
   def initialize(options = {})
     @url = options.delete(:url)
@@ -44,7 +45,11 @@ class Git
   end
   
   def latest_revision
-    GitRevision.new(repo.commits.first)
+    revision = GitRevision.new(repo.commits.first)
+    build = Build.new(@project,revision.number)
+    last_build = @project.last_complete_build || build
+    revision.message = repo.git.log({},&quot;--pretty=oneline --abbrev-commit  #{last_build.revision}..#{build.revision}&quot;)
+    revision
   end
 
   def update_origin
@@ -69,7 +74,7 @@ class Git
   def up_to_date?(reasons = [], revision_number = latest_revision.number)
     return true if update_origin.empty?
     reset_from_remote
-    reasons &lt;&lt; &quot;New revision #{latest_revision.number} detected&quot;
+#    reasons &lt;&lt; &quot;New revision #{latest_revision.number} detected&quot;
     reasons &lt;&lt; latest_revision
     false
   end</diff>
      <filename>lib/git.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f96766ddb26c9cae35b696980afdd7f84112afe2</id>
    </parent>
  </parents>
  <author>
    <name>Ben Griffiths</name>
    <email>bengriffiths@gmail.com</email>
  </author>
  <url>http://github.com/benburkert/cruisecontrolrb/commit/c55664520781b8ec155f0c4ff782c92043e4ac12</url>
  <id>c55664520781b8ec155f0c4ff782c92043e4ac12</id>
  <committed-date>2008-05-15T16:36:46-07:00</committed-date>
  <authored-date>2008-05-15T16:36:46-07:00</authored-date>
  <message>Hacked it about a bit - a bit more refactoring needed for sure.</message>
  <tree>2dd2e72653a3ca4f8eef26973012f6b3f0c217b8</tree>
  <committer>
    <name>Ben Griffiths</name>
    <email>bengriffiths@gmail.com</email>
  </committer>
</commit>
