##// END OF EJS Templates
scm: git: set revisions ordering inconsistent in existing database (#5357)....
Toshi MARUYAMA -
r5733:098655dbd061
parent child
Show More
@@ -110,6 +110,16 class Repository::Git < Repository
110 return if scm_brs.nil? || scm_brs.empty?
110 return if scm_brs.nil? || scm_brs.empty?
111 h = extra_info || {}
111 h = extra_info || {}
112 h["branches"] ||= {}
112 h["branches"] ||= {}
113 h["db_consistent"] ||= {}
114 if changesets.count == 0
115 h["db_consistent"]["ordering"] = 1
116 merge_extra_info(h)
117 self.save
118 elsif ! h["db_consistent"].has_key?("ordering")
119 h["db_consistent"]["ordering"] = 0
120 merge_extra_info(h)
121 self.save
122 end
113 scm_brs.each do |br|
123 scm_brs.each do |br|
114 from_scmid = nil
124 from_scmid = nil
115 from_scmid = h["branches"][br]["last_scmid"] if h["branches"][br]
125 from_scmid = h["branches"][br]["last_scmid"] if h["branches"][br]
General Comments 0
You need to be logged in to leave comments. Login now