From d57910c39e3e283cedcc204db45442637e103cca Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 25 May 2011 16:14:15 +0000 Subject: [PATCH] scm: move ScmCommandAborted class from git and cvs adapter to abstract adapter. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5901 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/abstract_adapter.rb | 4 ++++ lib/redmine/scm/adapters/cvs_adapter.rb | 3 --- lib/redmine/scm/adapters/git_adapter.rb | 3 --- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index fec9de5c1..81a24af81 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -24,6 +24,10 @@ module Redmine end class AbstractAdapter #:nodoc: + + # raised if scm command exited with error, e.g. unknown revision. + class ScmCommandAborted < CommandFailed; end + class << self def client_command "" diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb index ffa241e7c..16030a4d5 100644 --- a/lib/redmine/scm/adapters/cvs_adapter.rb +++ b/lib/redmine/scm/adapters/cvs_adapter.rb @@ -25,9 +25,6 @@ module Redmine # CVS executable name CVS_BIN = Redmine::Configuration['scm_cvs_command'] || "cvs" - # raised if scm command exited with error, e.g. unknown revision. - class ScmCommandAborted < CommandFailed; end - class << self def client_command @@bin ||= CVS_BIN diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index ad04b62cb..0549808e9 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -25,9 +25,6 @@ module Redmine # Git executable name GIT_BIN = Redmine::Configuration['scm_git_command'] || "git" - # raised if scm command exited with error, e.g. unknown revision. - class ScmCommandAborted < CommandFailed; end - class << self def client_command @@bin ||= GIT_BIN -- 2.39.5