From f57225c72f9fff1ad071ceb739dc9bb78c588a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phaneDucasse?= Date: Wed, 29 May 2024 10:57:05 +0200 Subject: [PATCH] Update ExportFormats.md --- General/ExportFormats.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/General/ExportFormats.md b/General/ExportFormats.md index d8ecd08..a387a2a 100644 --- a/General/ExportFormats.md +++ b/General/ExportFormats.md @@ -94,8 +94,7 @@ Tonel got multiple versions over the years, each tweaking the export format: - version 3.0: this version has the changes of the 2.0 but it also adds the properties `package` and `tag` to replace the `category` property for class definitions. This is to remove same ambiguity in the class definitions. The `category` property is kept by default for backward compatibility, but the TonelWriter can be configured to not export this property. This format can also be improved to export more metadata. For example, it is planned to export a property `deprecatedAliases` to manage some class deprecations in the future. If you want to change your export format and convert all the files of a repository at once to avoid to have multiple PR with format changes you can use the following script. - -**NOTE: you must ensure all your project packages are loaded in the image (check in the Repository | Packages window, and right click load any that aren't).** +Take a Pharo 12 or Pharo 13 images and run the following script. It will convert all the loaded packages in your image so you may load extra packages to prepare such operation. ```st | projectName repository | @@ -105,6 +104,8 @@ repository workingCopy packages do: [ :pkg | IceLibgitTonelWriter forInternalStoreFileOut: pkg latestVersion mcVersion on: repository ] ``` +**NOTE: you must ensure all your project packages are loaded in the image (check in the Repository | Packages window, and right click load any that aren't).** + Once you have run this script, use the "Repository, Project | Extra | Open in native file browser" menu option to open an OS terminal and then run: ``` git commit -a -m "Update tonel formal to V3"