def update_version(self): """ @return: updated VersionsFile """ fw_gr, versions_file, new_tags = ua.github_repo_new( self._repo_framework, 'silverstripe/framework', self.versions_file, self.update_majors) cms_gr, _, _ = ua.github_repo_new(self._repo_cms, 'silverstripe/cms', self.versions_file, self.update_majors) hashes = {} for version in new_tags: fw_gr.tag_checkout(version) try: cms_gr.tag_checkout(version) except exceptions.RuntimeError: print("Version %s does not exist on `cms` branch. Skipping.") continue hashes[version] = ua.hashes_get( versions_file, './.update-workspace/silverstripe/') versions_file.update(hashes) return versions_file
def update_version(self): """ @return: updated VersionsFile """ fw_gr, versions_file, new_tags = ua.github_repo_new(self._repo_framework, 'silverstripe/framework', self.versions_file, self.update_majors) cms_gr, _, _ = ua.github_repo_new(self._repo_cms, 'silverstripe/cms', self.versions_file, self.update_majors) hashes = {} for version in new_tags: fw_gr.tag_checkout(version) cms_gr.tag_checkout(version) hashes[version] = ua.hashes_get(versions_file, './.update-workspace/silverstripe/') versions_file.update(hashes) return versions_file
def update_version(self): """ @return: updated VersionsFile """ gr, versions_file, new_tags = ua.github_repo_new('wordpress/wordpress/', 'wordpress/wordpress/', self.versions_file, self.update_majors) hashes = {} for version in new_tags: gr.tag_checkout(version) hashes[version] = gr.hashes_get(versions_file, self.update_majors) versions_file.update(hashes) return versions_file
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): """ @return: updated VersionsFile """ gr, versions_file, new_tags = ua.github_repo_new( "joomla/joomla-cms/", "joomla/joomla-cms/", 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): """ @return: updated VersionsFile """ gr, versions_file, new_tags = ua.github_repo_new('moodle/moodle/', 'moodle/moodle', self.versions_file, self.update_majors) hashes = {} for version in new_tags: # tags look like "v1.0" in Moodle. gr.tag_checkout("v" + version) hashes[version] = gr.hashes_get(versions_file) versions_file.update(hashes) return versions_file