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
This commit is contained in:
Toshi MARUYAMA 2011-05-06 13:48:36 +00:00
parent 2db0475454
commit e9e477426a
1 changed files with 18 additions and 18 deletions

View File

@ -1,16 +1,16 @@
# redMine - project management software # Redmine - project management software
# Copyright (C) 2006-2007 Jean-Philippe Lang # Copyright (C) 2006-2011 Jean-Philippe Lang
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License # modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2 # as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version. # of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # 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 es ? es.detect {|e| e.name == search_name} : nil
end end
end end
# Returns an Entries collection # Returns an Entries collection
# or nil if the given path doesn't exist in the repository # or nil if the given path doesn't exist in the repository
def entries(path=nil, identifier=nil, options={}) def entries(path=nil, identifier=nil, options={})
@ -122,26 +122,26 @@ module Redmine
return nil return nil
end end
def tags def tags
return nil return nil
end end
def default_branch def default_branch
return nil return nil
end end
def properties(path, identifier=nil) def properties(path, identifier=nil)
return nil return nil
end end
def revisions(path=nil, identifier_from=nil, identifier_to=nil, options={}) def revisions(path=nil, identifier_from=nil, identifier_to=nil, options={})
return nil return nil
end end
def diff(path, identifier_from, identifier_to=nil) def diff(path, identifier_from, identifier_to=nil)
return nil return nil
end end
def cat(path, identifier=nil) def cat(path, identifier=nil)
return nil return nil
end end
@ -242,7 +242,7 @@ module Redmine
class Entries < Array class Entries < Array
def sort_by_name def sort_by_name
sort {|x,y| sort {|x,y|
if x.kind == y.kind if x.kind == y.kind
x.name.to_s <=> y.name.to_s x.name.to_s <=> y.name.to_s
else else
@ -286,7 +286,7 @@ module Redmine
Redmine::MimeType.is_type?('text', name) Redmine::MimeType.is_type?('text', name)
end end
end end
class Revisions < Array class Revisions < Array
def latest def latest
sort {|x,y| sort {|x,y|
@ -296,9 +296,9 @@ module Redmine
0 0
end end
}.last }.last
end end
end end
class Revision class Revision
attr_accessor :scmid, :name, :author, :time, :message, attr_accessor :scmid, :name, :author, :time, :message,
:paths, :revision, :branch, :identifier :paths, :revision, :branch, :identifier
@ -323,21 +323,21 @@ module Redmine
class Annotate class Annotate
attr_reader :lines, :revisions attr_reader :lines, :revisions
def initialize def initialize
@lines = [] @lines = []
@revisions = [] @revisions = []
end end
def add_line(line, revision) def add_line(line, revision)
@lines << line @lines << line
@revisions << revision @revisions << revision
end end
def content def content
content = lines.join("\n") content = lines.join("\n")
end end
def empty? def empty?
lines.empty? lines.empty?
end end