Transaction for each imported subversion changeset.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2563 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8375e98ade
commit
7bd4590cd6
@ -54,8 +54,8 @@ class Repository::Subversion < Repository
|
|||||||
# loads changesets by batches of 200
|
# loads changesets by batches of 200
|
||||||
identifier_to = [identifier_from + 199, scm_revision].min
|
identifier_to = [identifier_from + 199, scm_revision].min
|
||||||
revisions = scm.revisions('', identifier_to, identifier_from, :with_paths => true)
|
revisions = scm.revisions('', identifier_to, identifier_from, :with_paths => true)
|
||||||
transaction do
|
|
||||||
revisions.reverse_each do |revision|
|
revisions.reverse_each do |revision|
|
||||||
|
transaction do
|
||||||
changeset = Changeset.create(:repository => self,
|
changeset = Changeset.create(:repository => self,
|
||||||
:revision => revision.identifier,
|
:revision => revision.identifier,
|
||||||
:committer => revision.author,
|
:committer => revision.author,
|
||||||
@ -68,7 +68,7 @@ class Repository::Subversion < Repository
|
|||||||
:path => change[:path],
|
:path => change[:path],
|
||||||
:from_path => change[:from_path],
|
:from_path => change[:from_path],
|
||||||
:from_revision => change[:from_revision])
|
:from_revision => change[:from_revision])
|
||||||
end
|
end unless changeset.new_record?
|
||||||
end
|
end
|
||||||
end unless revisions.nil?
|
end unless revisions.nil?
|
||||||
identifier_from = identifier_to + 1
|
identifier_from = identifier_to + 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user