summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 08:34:59 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 08:34:59 +0000
commita5384e4e8845e84f9801605ad5161749e05fdf60 (patch)
treeedab3a8401e01791b39723eaf2cfded0e839de67 /lib
parenta6798d6cc2232f116c2c007fa5c7f9239b9b646c (diff)
downloadredmine-a5384e4e8845e84f9801605ad5161749e05fdf60.tar.gz
redmine-a5384e4e8845e84f9801605ad5161749e05fdf60.zip
scm: cvs: override Revision.format_identifier() for blame in adapter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5402 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/cvs_adapter.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb
index 00119c839..58c7b6d9d 100644
--- a/lib/redmine/scm/adapters/cvs_adapter.rb
+++ b/lib/redmine/scm/adapters/cvs_adapter.rb
@@ -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