From a5384e4e8845e84f9801605ad5161749e05fdf60 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 11 Apr 2011 08:34:59 +0000 Subject: [PATCH] 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 --- lib/redmine/scm/adapters/cvs_adapter.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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