Skip to content

Commit

Permalink
Merge pull request #352 from Ducasse/patch-8
Browse files Browse the repository at this point in the history
Update ExportFormats.md
  • Loading branch information
jecisc authored Oct 14, 2024
2 parents b4a5b1d + f57225c commit b83b656
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions General/ExportFormats.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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"
Expand Down

0 comments on commit b83b656

Please sign in to comment.