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

rename package: history on directories not always preserved #184

Open
caroso-de opened this issue Jun 29, 2021 · 0 comments
Open

rename package: history on directories not always preserved #184

caroso-de opened this issue Jun 29, 2021 · 0 comments

Comments

@caroso-de
Copy link

Hi,
I found the following behavior when renaming packages:

I start with a Java project containing the following:

pkg/before/main/Main.java
pkg/before/other/Other.java

Now I'd like to rename the directory named "before" to "after", so I choose to Refactor/Rename with Option "Rename subpackages" to effectively refactor the whole tree (which it does).

Now I end up with just the deepest folders (main and other) preserving their history, while the newly created directory "pkg/after" shows up as "added" with no history copied at all.

This happens both with javahl and svnkit.

Here is what the svn console says

- add pkg/after (=> added)
- move pgk/before/main pkg/after/main (delete, add with history)
- move pgk/before/other pkg/after/other (delete, add with history)

Performing the same operation with svn move (tortoisesvn rename) creates the new directory "after" and copies the whole history there, loosing nothing. But this means you might have to correct loads of classes (package, imports) afterwards.

Is there a fix or viable workaround?

Thanks a lot!

Tested with:
Eclipse 2021-03
Subclipse 4.3.3 + JavaHL 1.14.0 or SVNKit 1.10.3.10808

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

No branches or pull requests

1 participant