public RepositoryVersionEntity getRepositoryVersion() {
    return m_repositoryVersion;
  }
Gets the single repository version for the upgrade depending on the
direction.
<p/>
If the direction is {@link Direction#UPGRADE} then this will return the
target repository which every service will be on if the upgrade is
finalized. <p/>
If the direction is {@link Direction#DOWNGRADE} then this will return the
repository from which the downgrade is coming from.

@return the target repository version for this upgrade (never
        {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/stack/upgrade/orchestrate/UpgradeContext.java