scm_brs = branches
return if scm_brs.blank?
- h = extra_info&.dup || {}
+ h = extra_info.dup || {}
repo_heads = scm_brs.map(&:scmid)
- prev_db_heads = h["heads"]&.dup || []
+ prev_db_heads = h["heads"].dup || []
prev_db_heads += heads_from_branches_hash if prev_db_heads.empty?
return if prev_db_heads.sort == repo_heads.sort
private :save_revision
def heads_from_branches_hash
- h = extra_info&.dup || {}
+ h = extra_info.dup || {}
h["branches"] ||= {}
h['branches'].map{|br, hs| hs['last_scmid']}
end