@@ -286,21 +286,23 module Redmine | |||
|
286 | 286 | end |
|
287 | 287 | |
|
288 | 288 | def save(repo) |
|
289 | if repo.changesets.find_by_scmid(scmid.to_s).nil? | |
|
290 |
changeset = Changeset. |
|
|
289 | Changeset.transaction do | |
|
290 | changeset = Changeset.new( | |
|
291 | 291 | :repository => repo, |
|
292 | 292 | :revision => identifier, |
|
293 | 293 | :scmid => scmid, |
|
294 | 294 | :committer => author, |
|
295 | 295 | :committed_on => time, |
|
296 | 296 | :comments => message) |
|
297 | ||
|
298 | paths.each do |file| | |
|
299 |
|
|
|
300 |
|
|
|
301 |
|
|
|
302 |
|
|
|
303 | end | |
|
297 | ||
|
298 | if changeset.save | |
|
299 | paths.each do |file| | |
|
300 | Change.create( | |
|
301 | :changeset => changeset, | |
|
302 | :action => file[:action], | |
|
303 | :path => file[:path]) | |
|
304 | end | |
|
305 | end | |
|
304 | 306 | end |
|
305 | 307 | end |
|
306 | 308 | end |
General Comments 0
You need to be logged in to leave comments.
Login now