summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-28 04:55:54 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-28 04:55:54 +0000
commit0ff17efb4d55c19b9a6a62c7d044db3ea81f5110 (patch)
tree29134fc8dff433dd4a3474282a649f6de2cfa7c0 /lib
parent887893601e6ee5b82033a0f458dca5d01d9b534d (diff)
downloadredmine-0ff17efb4d55c19b9a6a62c7d044db3ea81f5110.tar.gz
redmine-0ff17efb4d55c19b9a6a62c7d044db3ea81f5110.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index 9228dbe2d..1c172f342 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -333,7 +333,8 @@ module Redmine
class Revision
attr_accessor :scmid, :name, :author, :time, :message,
- :paths, :revision, :branch, :identifier
+ :paths, :revision, :branch, :identifier,
+ :parents
def initialize(attributes={})
self.identifier = attributes[:identifier]
@@ -345,6 +346,7 @@ module Redmine
self.paths = attributes[:paths]
self.revision = attributes[:revision]
self.branch = attributes[:branch]
+ self.parents = attributes[:parents]
end
# Returns the readable identifier.