scm: lib: add parents attribute to Revision class of abstract adapter (#5501)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7665 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-10-28 04:55:54 +00:00
parent 887893601e
commit 0ff17efb4d
1 changed files with 3 additions and 1 deletions

View File

@ -333,7 +333,8 @@ module Redmine
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,
:parents
def initialize(attributes={}) def initialize(attributes={})
self.identifier = attributes[:identifier] self.identifier = attributes[:identifier]
@ -345,6 +346,7 @@ module Redmine
self.paths = attributes[:paths] self.paths = attributes[:paths]
self.revision = attributes[:revision] self.revision = attributes[:revision]
self.branch = attributes[:branch] self.branch = attributes[:branch]
self.parents = attributes[:parents]
end end
# Returns the readable identifier. # Returns the readable identifier.