view app/models/repository/darcs.rb.rej @ 141:ab75f33dcc6f luisf

Issue #31: issue submitters and assignees are added to the watchers list. incomplete: there is no option to select/unselect the assignee.
author luisf
date Thu, 20 Jan 2011 13:08:43 +0000
parents 1d32c0a0efbf
children
line wrap: on
line source
--- app/models/repository/darcs.rb
+++ app/models/repository/darcs.rb
@@ -85,11 +85,7 @@
                                          :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
             next_rev += 1
           end if revisions