summaryrefslogtreecommitdiffstats
path: root/app/models/repository
diff options
context:
space:
mode:
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