summaryrefslogtreecommitdiffstats
path: root/app/models/repository/subversion.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-02-02 17:02:32 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-02-02 17:02:32 +0000
commit39c585740d45cbe50e3fed8a58834eb82532bea0 (patch)
tree134c518351e11faf1274becf258726c95ecb656a /app/models/repository/subversion.rb
parent358e3194d79b9e4503edd48d2179b9f8f2920cd3 (diff)
downloadredmine-39c585740d45cbe50e3fed8a58834eb82532bea0.tar.gz
redmine-39c585740d45cbe50e3fed8a58834eb82532bea0.zip
Refactor: Extract method to create a Change from a Changeset.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3360 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/subversion.rb')
-rw-r--r--app/models/repository/subversion.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/repository/subversion.rb b/app/models/repository/subversion.rb
index 3eec5a611..091d14130 100644
--- a/app/models/repository/subversion.rb
+++ b/app/models/repository/subversion.rb
@@ -63,11 +63,7 @@ class Repository::Subversion < Repository
:comments => revision.message)
revision.paths.each do |change|
- Change.create(:changeset => changeset,
- :action => change[:action],
- :path => change[:path],
- :from_path => change[:from_path],
- :from_revision => change[:from_revision])
+ changeset.create_change(change)
end unless changeset.new_record?
end
end unless revisions.nil?