summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-25 16:14:15 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-25 16:14:15 +0000
commitd57910c39e3e283cedcc204db45442637e103cca (patch)
tree20d8c661954b5983a29218a548a52461c0d86033 /lib/redmine/scm
parente9deec685d7fe86da161839b501ba50e3e7bba67 (diff)
downloadredmine-d57910c39e3e283cedcc204db45442637e103cca.tar.gz
redmine-d57910c39e3e283cedcc204db45442637e103cca.zip
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
Diffstat (limited to 'lib/redmine/scm')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb4
-rw-r--r--lib/redmine/scm/adapters/cvs_adapter.rb3
-rw-r--r--lib/redmine/scm/adapters/git_adapter.rb3
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