GIT does not preserve history after migrating project which has folder structure changed (moved the folders) even SVN log preserved.

I have migrated my all SVN repositories to GIT/bitbcuket.

In one of project structure was not starndard SVN lay out and it was as below:

PROJECT

branches

Tags

ReleaseNotes

SubProject1

SubProject2

SubProject3

Trunk

I have restrcutred the project and make it standard layout as below:

PROJECT

Branches

Tags

Trunk

After restructure, in my SVN log, it shows me all svn log history for moved project.

But,

After migration to bitbucket. I am only able to see the last moved project history and all previous are not appearing as those are important to preserve for the project.

Please let me know any steps or your views to resolve this issue.

2 answers

1 accepted

When you move data around in Subversion you break all the prior commit history. That means anytime you do a copy or move operation in SVN you lose the associated history of the directory. Typically you want to re-write all the svn history to the new path.

The only way to move a directory while preserving revision history is to dump the repository and re-write the paths with a utility like svn-dump-reloc, which will keep all the commit history of your repository for you.

I have mentioned required steps in below link which allows to execute command over windows machine.

http://stackoverflow.com/questions/13972693/svn-dump-reloc-use-in-windows-command-prompt

I have mentioned required steps in below link which allows to execute command over windows machine.

http://stackoverflow.com/questions/13972693/svn-dump-reloc-use-in-windows-command-prompt

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

29,322 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you