summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-06 13:48:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-06 13:48:36 +0000
commite9e477426aa538fa1d77fca13944e40ee24557ec (patch)
tree5d9054f616f55d1c41ac14a1a3bf1909190c6801 /lib/redmine/scm
parent2db04754546d823c51601f129966a04f9c7c50a4 (diff)
downloadredmine-e9e477426aa538fa1d77fca13944e40ee24557ec.tar.gz
redmine-e9e477426aa538fa1d77fca13944e40ee24557ec.zip
scm: remove trailing white-spaces from abstract adapter source.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5672 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index eecf73fdb..6c3101ec6 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -1,16 +1,16 @@
-# redMine - project management software
-# Copyright (C) 2006-2007 Jean-Philippe Lang
+# Redmine - project management software
+# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -111,7 +111,7 @@ module Redmine
es ? es.detect {|e| e.name == search_name} : nil
end
end
-
+
# Returns an Entries collection
# or nil if the given path doesn't exist in the repository
def entries(path=nil, identifier=nil, options={})
@@ -122,26 +122,26 @@ module Redmine
return nil
end
- def tags
+ def tags
return nil
end
def default_branch
return nil
end
-
+
def properties(path, identifier=nil)
return nil
end
-
+
def revisions(path=nil, identifier_from=nil, identifier_to=nil, options={})
return nil
end
-
+
def diff(path, identifier_from, identifier_to=nil)
return nil
end
-
+
def cat(path, identifier=nil)
return nil
end
@@ -242,7 +242,7 @@ module Redmine
class Entries < Array
def sort_by_name
- sort {|x,y|
+ sort {|x,y|
if x.kind == y.kind
x.name.to_s <=> y.name.to_s
else
@@ -286,7 +286,7 @@ module Redmine
Redmine::MimeType.is_type?('text', name)
end
end
-
+
class Revisions < Array
def latest
sort {|x,y|
@@ -296,9 +296,9 @@ module Redmine
0
end
}.last
- end
+ end
end
-
+
class Revision
attr_accessor :scmid, :name, :author, :time, :message,
:paths, :revision, :branch, :identifier
@@ -323,21 +323,21 @@ module Redmine
class Annotate
attr_reader :lines, :revisions
-
+
def initialize
@lines = []
@revisions = []
end
-
+
def add_line(line, revision)
@lines << line
@revisions << revision
end
-
+
def content
content = lines.join("\n")
end
-
+
def empty?
lines.empty?
end