]> source.dussan.org Git - redmine.git/commitdiff
scm: move ScmCommandAborted class from git and cvs adapter to abstract adapter.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 May 2011 16:14:15 +0000 (16:14 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 May 2011 16:14:15 +0000 (16:14 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5901 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/abstract_adapter.rb
lib/redmine/scm/adapters/cvs_adapter.rb
lib/redmine/scm/adapters/git_adapter.rb

index fec9de5c13cde40438c9f48fd8a5914850325df2..81a24af819f8ca84607867ab507db90d4ba81d96 100644 (file)
@@ -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
             ""
index ffa241e7c4ec3cb922a8eb30f0341459fcd9b730..16030a4d5349a9894e22bee5bcd1ef6858548c74 100644 (file)
@@ -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
index ad04b62cbca7463e9a661debb352063a3d046c21..0549808e9498036182a94491c80060b543046f04 100644 (file)
@@ -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