@@ -54,8 +54,8 class Repository::Subversion < Repository | |||||
54 | # loads changesets by batches of 200 |
|
54 | # loads changesets by batches of 200 | |
55 | identifier_to = [identifier_from + 199, scm_revision].min |
|
55 | identifier_to = [identifier_from + 199, scm_revision].min | |
56 | revisions = scm.revisions('', identifier_to, identifier_from, :with_paths => true) |
|
56 | revisions = scm.revisions('', identifier_to, identifier_from, :with_paths => true) | |
57 | transaction do |
|
57 | revisions.reverse_each do |revision| | |
58 | revisions.reverse_each do |revision| |
|
58 | transaction do | |
59 | changeset = Changeset.create(:repository => self, |
|
59 | changeset = Changeset.create(:repository => self, | |
60 | :revision => revision.identifier, |
|
60 | :revision => revision.identifier, | |
61 | :committer => revision.author, |
|
61 | :committer => revision.author, | |
@@ -68,7 +68,7 class Repository::Subversion < Repository | |||||
68 | :path => change[:path], |
|
68 | :path => change[:path], | |
69 | :from_path => change[:from_path], |
|
69 | :from_path => change[:from_path], | |
70 | :from_revision => change[:from_revision]) |
|
70 | :from_revision => change[:from_revision]) | |
71 | end |
|
71 | end unless changeset.new_record? | |
72 | end |
|
72 | end | |
73 | end unless revisions.nil? |
|
73 | end unless revisions.nil? | |
74 | identifier_from = identifier_to + 1 |
|
74 | identifier_from = identifier_to + 1 |
General Comments 0
You need to be logged in to leave comments.
Login now