def get_release_data(self):
previous_package = self.get_previous_release()<EOL>if previous_package:<EOL><INDENT>previous_version = previous_package.version<EOL>previous_revision = previous_package.revision<EOL><DEDENT>else:<EOL><INDENT>previous_version = None<EOL>previous_revision = None<EOL><DEDENT>if self.vcs is None:<EOL><INDENT>return dict(vcs="<STR_LIT:None>",<EOL>previous_version=previous_version)<EOL><DEDENT>revision = None<EOL>with self.repo_operation():<EOL><INDENT>revision = self.vcs.get_current_revision()<EOL><DEDENT>changelog = self.get_changelog()<EOL>maxlen = config.max_package_changelog_chars<EOL>if maxlen and changelog and len(changelog) > maxlen + <NUM_LIT:3>:<EOL><INDENT>changelog = changelog[:maxlen] + "<STR_LIT>"<EOL><DEDENT>return dict(vcs=self.vcs.name(),<EOL>revision=revision,<EOL>changelog=changelog,<EOL>previous_version=previous_version,<EOL>previous_revision=previous_revision)<EOL>
Get release data for this release.

        Returns:
            dict.