summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-04 13:16:10 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-04 13:16:10 +0000
commit8df05b9a6dff195cab71bcb769d7c78c2640c22a (patch)
tree633293c42547513fc673e668c1a2630ea2881b00 /lib
parent741967ae68446630beeb079f32d5aad730be9c80 (diff)
downloadredmine-8df05b9a6dff195cab71bcb769d7c78c2640c22a.tar.gz
redmine-8df05b9a6dff195cab71bcb769d7c78c2640c22a.zip
scm remove trailing white-spaces in abstract adapter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5637 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index 1e7f39583..6861b0c08 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -90,12 +90,12 @@ module Redmine
def url
@url
end
-
+
# get info about the svn repository
def info
return nil
end
-
+
# Returns the entry identified by path and revision identifier
# or nil if entry doesn't exist in the repository
def entry(path=nil, identifier=nil)
@@ -250,12 +250,12 @@ module Redmine
end
}
end
-
+
def revisions
revisions ||= Revisions.new(collect{|entry| entry.lastrev}.compact)
end
end
-
+
class Info
attr_accessor :root_url, :lastrev
def initialize(attributes={})
@@ -263,7 +263,7 @@ module Redmine
self.lastrev = attributes[:lastrev]
end
end
-
+
class Entry
attr_accessor :name, :path, :kind, :size, :lastrev
def initialize(attributes={})
@@ -273,15 +273,15 @@ module Redmine
self.size = attributes[:size].to_i if attributes[:size]
self.lastrev = attributes[:lastrev]
end
-
+
def is_file?
'file' == self.kind
end
-
+
def is_dir?
'dir' == self.kind
end
-
+
def is_text?
Redmine::MimeType.is_type?('text', name)
end