]> source.dussan.org Git - redmine.git/commitdiff
scm: cvs: override Revision.format_identifier() for blame in adapter.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 08:34:59 +0000 (08:34 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 08:34:59 +0000 (08:34 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5402 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/cvs_adapter.rb

index 00119c839e1ed90ed909af1df2ea0f30337e2651..58c7b6d9df4dd644ced1db053b1a09559c9ef961 100644 (file)
@@ -363,6 +363,13 @@ module Redmine
           path.sub(/^(\/)*(.*)/,'\2').sub(/(.*)(,v)+/,'\1')
         end   
 
+        class Revision < Redmine::Scm::Adapters::Revision
+          # Returns the readable identifier
+          def format_identifier
+            revision.to_s
+          end
+        end
+
         def scm_cmd(*args, &block)
           full_args = [CVS_BIN, '-d', root_url]
           full_args += args