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

1 vote
Accepted answer

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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

407 views 5 9
Read article

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