scm: git: split fetch_changesets method

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8814 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-02-08 11:10:46 +00:00
parent f319409abc
commit adb81b1ff6
1 changed files with 5 additions and 0 deletions

View File

@ -144,6 +144,10 @@ class Repository::Git < Repository
merge_extra_info(h)
self.save
end
save_revisions(h, scm_brs)
end
def save_revisions(h, scm_brs)
scm_brs.each do |br1|
br = br1.to_s
from_scmid = nil
@ -167,6 +171,7 @@ class Repository::Git < Repository
end
end
end
private :save_revisions
def save_revision(rev)
changeset = Changeset.new(