summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-10 18:32:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-10 18:32:09 +0000
commit7c105ec9e93b73f5c11f2d5cc240e2b15344ec98 (patch)
treee3d80cdacc74861550583ed4445ff69b051655c8 /lib/redmine/scm
parent9b60214b3a3e25691400cd3bbf11191429bc3c1c (diff)
downloadredmine-7c105ec9e93b73f5c11f2d5cc240e2b15344ec98.tar.gz
redmine-7c105ec9e93b73f5c11f2d5cc240e2b15344ec98.zip
Adds a method to load changesets for repository entries.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9805 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index d487a0f30..345aeba20 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -301,7 +301,8 @@ module Redmine
end
class Entry
- attr_accessor :name, :path, :kind, :size, :lastrev
+ attr_accessor :name, :path, :kind, :size, :lastrev, :changeset
+
def initialize(attributes={})
self.name = attributes[:name] if attributes[:name]
self.path = attributes[:path] if attributes[:path]