summaryrefslogtreecommitdiffstats
path: root/app/models/repository
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-03 08:03:16 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-03 08:03:16 +0000
commitd10102e940b7779f2f1f472019fa2c4304beaa7a (patch)
tree700b00c8549c1e769183884ee5105ba85d7c967e /app/models/repository
parente0f7acaf6130833d1a0f1388f8c61058a7f91115 (diff)
downloadredmine-d10102e940b7779f2f1f472019fa2c4304beaa7a.tar.gz
redmine-d10102e940b7779f2f1f472019fa2c4304beaa7a.zip
scm: mercurial: model: save parent/child relation for changesets (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7713 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository')
-rw-r--r--app/models/repository/mercurial.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb
index 6db3e2566..4f0bb89e6 100644
--- a/app/models/repository/mercurial.rb
+++ b/app/models/repository/mercurial.rb
@@ -142,6 +142,11 @@ class Repository::Mercurial < Repository
:committed_on => re.time,
:comments => re.message)
re.paths.each { |e| cs.create_change(e) }
+ parents = {}
+ parents[cs] = re.parents unless re.parents.nil?
+ parents.each do |ch, chparents|
+ ch.parents = chparents.collect{|rp| find_changeset_by_name(rp)}.compact
+ end
end
end
end