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
This commit is contained in:
parent
741967ae68
commit
8df05b9a6d
|
@ -90,12 +90,12 @@ module Redmine
|
||||||
def url
|
def url
|
||||||
@url
|
@url
|
||||||
end
|
end
|
||||||
|
|
||||||
# get info about the svn repository
|
# get info about the svn repository
|
||||||
def info
|
def info
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns the entry identified by path and revision identifier
|
# Returns the entry identified by path and revision identifier
|
||||||
# or nil if entry doesn't exist in the repository
|
# or nil if entry doesn't exist in the repository
|
||||||
def entry(path=nil, identifier=nil)
|
def entry(path=nil, identifier=nil)
|
||||||
|
@ -250,12 +250,12 @@ module Redmine
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def revisions
|
def revisions
|
||||||
revisions ||= Revisions.new(collect{|entry| entry.lastrev}.compact)
|
revisions ||= Revisions.new(collect{|entry| entry.lastrev}.compact)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Info
|
class Info
|
||||||
attr_accessor :root_url, :lastrev
|
attr_accessor :root_url, :lastrev
|
||||||
def initialize(attributes={})
|
def initialize(attributes={})
|
||||||
|
@ -263,7 +263,7 @@ module Redmine
|
||||||
self.lastrev = attributes[:lastrev]
|
self.lastrev = attributes[:lastrev]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Entry
|
class Entry
|
||||||
attr_accessor :name, :path, :kind, :size, :lastrev
|
attr_accessor :name, :path, :kind, :size, :lastrev
|
||||||
def initialize(attributes={})
|
def initialize(attributes={})
|
||||||
|
@ -273,15 +273,15 @@ module Redmine
|
||||||
self.size = attributes[:size].to_i if attributes[:size]
|
self.size = attributes[:size].to_i if attributes[:size]
|
||||||
self.lastrev = attributes[:lastrev]
|
self.lastrev = attributes[:lastrev]
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_file?
|
def is_file?
|
||||||
'file' == self.kind
|
'file' == self.kind
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_dir?
|
def is_dir?
|
||||||
'dir' == self.kind
|
'dir' == self.kind
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_text?
|
def is_text?
|
||||||
Redmine::MimeType.is_type?('text', name)
|
Redmine::MimeType.is_type?('text', name)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue