scm: git: move saving changesets from adapter to model (#3396).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4959 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-02-28 04:46:42 +00:00
parent c781cbb2f7
commit d7aa303a5c
2 changed files with 22 additions and 22 deletions

View File

@@ -324,27 +324,6 @@ module Redmine
def format_identifier
identifier
end
def save(repo)
Changeset.transaction do
changeset = Changeset.new(
:repository => repo,
:revision => identifier,
:scmid => scmid,
:committer => author,
:committed_on => time,
:comments => message)
if changeset.save
paths.each do |file|
Change.create(
:changeset => changeset,
:action => file[:action],
:path => file[:path])
end
end
end
end
end
class Annotate