Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVN: Moving and renaming files, and preserving history #44

Open
jetgeo opened this issue Oct 25, 2016 · 2 comments
Open

SVN: Moving and renaming files, and preserving history #44

jetgeo opened this issue Oct 25, 2016 · 2 comments

Comments

@jetgeo
Copy link
Contributor

jetgeo commented Oct 25, 2016

XMI files are sometimes misplaced or erroneous named. Describe how to move and rename them, and at the same time preserving file history in SVN.

  1. Move package in EA (if needed, for instance to move from single package to “191xx All” structure
  2. Check out mother package in EA
  3. Remove from version control in EA
  4. Add to version control in EA, with correct xmi file name and path. A new file will be created.
  5. Check in package in EA
  6. Delete the new xmi-file in Explorer
  7. Commit in Explorer, to remove the new xmi file from SVN
  8. Do a SVN Copy and rename old xmi file to new name and path in Explorer https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-copy.html
  9. Get latest for package in EA

The old XMI file will now be in the correct folder, with the correct name, and with history preserved. And the package will be unchanged in EA.

@magnusKarge
Copy link
Contributor

Seems to work fine. I'm just wondering when the right moment for the check in for the mother package would be? I tried to check in the mother package after step 9, which results in an error in EA ("file not locked in this working copy"). I guess something happens during step 8 that released the lock in the explorer, which was not syncronised in EA. That's nothing that couldn't be fixed manually in a final step, just wondering if one could avoid that.

@jetgeo
Copy link
Contributor Author

jetgeo commented Nov 21, 2016

I think the mother package shall be checked in at the same time as the package in question, in step 5. Step 4 is the last step for modifying the structure in EA. At least I believe that's what I have done...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants