Skip to content

Moving and renaming XMI files in SVN

Tobias Spears edited this page Mar 24, 2020 · 2 revisions

How to move and rename XMI files in SVN

This article describes how to move and rename XMI files that are version controlled in SVN and connected to packages in Enterprise Architect. The version history for the files is maintained by following the described process.

This must be done with care!

Step 1-4 is done in Enterprise Architect

1. Move package in EA

If the structure in also supposed to be changed

2. Check out the superior package

Check out the superior package in Enterprise Architect, from the Package Control menu.

3. Remove from the current package version control

Uncheck "Control Package" from the Package Control Options

4. Add to version control, with correct name and folder for XMI

Check "Control Package" and set XMI Filename. Select to no keep checked out after initial check in. A new XMI file will be created and checked in.

5. Check in superior package

This must be done to make sure the new package control for the current package is saved in the superior package as well

Step 6-8 is done in Windows Explorer

6. Delete new XMI file in Explorer

Select "Delete" from the SVN right click submenu

7. Perform SVN Copy and/or rename from old xmi file to new name and path in Explorer https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-copy.html

8. Commit in Explorer

Select "Commit" from the SVN right click submenu

Step 9 is done in enterprise Architect

9. Get latest for package to make sure the package is updated from the original file