def update_version(self):
        """
        @return: updated VersionsFile
        """
        gr, versions_file, new_tags = ua.github_repo_new('drupal/drupal/',
                'drupal/drupal', self.versions_file, self.update_majors)

        hashes = {}
        for version in new_tags:
            gr.tag_checkout(version)
            hashes[version] = gr.hashes_get(versions_file)

        versions_file.update(hashes)
        return versions_file
def update_version ( self ) : gr , versions_file , new_tags = ua . github_repo_new ( 'drupal/drupal/' , 'drupal/drupal' , self . versions_file , self . update_majors ) hashes = { } for version in new_tags : gr . tag_checkout ( version ) hashes [ version ] = gr . hashes_get ( versions_file ) versions_file . update ( hashes ) return versions_file
@return: updated VersionsFile