Manual Version Control with XMI
You can use XMI to support version control by writing model elements in XML text files suitable for use with standard version control software.
Using XMI in this manner enables you to manually connect to third-party version control software outside the Enterprise Architect environment. Enterprise Architect internally supports the configuration of version control through SCC and CVS configurations.
To use XMI for version control, you must first:
- Select suitable packages in the Project Browser window, to be marked as controlled packages.
- Configure these with filenames that are visible to a version control system of your choice.
- Save the controlled packages to establish a model base and check these into the version control system.
When Versioning is Required
Continue working on a package until versioning is required then follow the steps below:
- Check out the package XMI file from the version control system.
- Save the relevant package using the controlled package support.
- Check the package back into the version control system.
Recover an Earlier Version
To recover an earlier version, follow the steps below:
- Save the current version first (this is important, because the package is completely deleted during the import process) and manually update the version control system if necessary.
- Get the required package version from the version control system.
- Select the package to reload.
- Select the Package Control | Load package from file menu option to import the previous version.
Enterprise Architect deletes the controlled package and restores the previous version.