lib/rim/upload_module_helper.rb
def get_revision_info(src_session, dest_session, src_sha1)
    module_status = StatusBuilder.new.rev_module_status(src_session, src_sha1, @module_info.local_path)
    rim_info = get_riminfo_for_revision(src_session, src_sha1)
    dest_sha1 = dest_session.rev_sha1("rim-#{src_sha1}")
    msg = src_session.execute("git show -s --format=%B #{src_sha1}") 
    RevisionInfo.new(module_status && module_status.dirty? ? dest_sha1 : rim_info.revision_sha1, src_sha1, rim_info, msg)
  end
def get_revision_info(src_session, dest_session, src_sha1)
    module_status = StatusBuilder.new.rev_module_status(src_session, src_sha1, @module_info.local_path)
    rim_info = get_riminfo_for_revision(src_session, src_sha1)
    dest_sha1 = dest_session.rev_sha1("rim-#{src_sha1}")
    msg = src_session.execute("git show -s --format=%B #{src_sha1}") 
    RevisionInfo.new(module_status && module_status.dirty? ? dest_sha1 : rim_info.revision_sha1, src_sha1, rim_info, msg)
  end
collect infos for a revision