Migrated from TFS to GIT to SVN. In SVN all the version dates are resetting to current date instead of historic dates -


we retiring tfs box , moving our repo tfs svn. sucessfully migrate tfs = git = svn , code history information contains current dates instead of historic dates in svn.

please find below steps used migrate.

step1: install chocolatey installer @powershell -noprofile -executionpolicy unrestricted -command "iex ((new-object net.webclient).downloadstring('https://chocolatey.org/install.ps1'))" && set path=%path%;%allusersprofile%\chocolatey\bin

step 2: install git-tfs tool cinst gittfs

step 3: clone tfs repository git repositiry history git-tfs clone http://:8080 $/qecg/development/source/testsvn d:\workarea\svn

step 4: initialize svn server repository git svn init -s --prefix=svn/ "http:///svn/tst01"

step 5: fetch data svn repository git svn fetch --all

step 6: create backup git rev-parse svn/trunk

step 7: echo id(step5) id(step6) >> .git/info/grafts

step 8: git filter-branch -- ^svn/trunk --all

step 9: git svn rebase

step 10: git svn dcommit

step 11: set remote origin path local repository copied git remote add origin d:\workarea\svn\cognos.git

step 12: fetch data local repository git fetch origin

step 13: check out files origin/master , move backup old_master git checkout -b old_master origin/master

step 14:apply history downloaded tfs git rebase --onto master --root

step 15: commit files svn repository git svn dcommit

cheers

sandeep

server based source control systems don't allow set historical dates. migration data now, date now.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -