diegobowen Posted April 24, 2012 Report Share Posted April 24, 2012 Hello there, I'm pretty sure the answer to this is "YES" but I had trouble finding a definitive "YES". So I ask, if I move a SVN repo to Git and then from Git to Plastic 4.0 will all commit/checkin histories be maintained? Link to comment Share on other sites More sharing options...
manu Posted April 25, 2012 Report Share Posted April 25, 2012 Yes Link to comment Share on other sites More sharing options...
diegobowen Posted April 26, 2012 Author Report Share Posted April 26, 2012 I went ahead and tested this....created a SVN repo and built up some commits, tags and branches.. Then to Git: [root@gitserver svn2git_tmpdir]# for i in diegoTagOne diegoTagTwo; do git tag $i tags/$i^; done [root@gitserver svn2git_tmpdir]# for i in diegoTagOne diegoTagTwo; do git branch -d -r tags/$i; done Deleted remote branch tags/diegoTagOne (was 8b335de). Deleted remote branch tags/diegoTagTwo (was 39b832e). [root@gitserver svn2git_tmpdir]# git branch -d -r trunk Deleted remote branch trunk (was d24a430). [root@gitserver svn2git_tmpdir]# git config --remove-section svn-remote.svn [root@gitserver svn2git_tmpdir]# rm -rf .git/svn .git/{logs/,}refs/remotes/svn/ [root@gitserver svn2git_tmpdir]# git config remote.origin.url . [root@gitserver svn2git_tmpdir]# git config --add remote.origin.fetch +refs/remote/*:refs/heads/* [root@gitserver svn2git_tmpdir]# git fetch [root@gitserver svn2git_tmpdir]# ls diego10.txt diego5.txt html srs_diego.php srs_recover.php diego1.txt diego6.txt index.og srs_encode.modified srs_result.php diego2.txt diego7.txt index.php srs_encode.php diego3.txt diego8.txt srs.css srs_functions.inc.php diego4.txt diego9.txt srs_decode.php srs.js [root@gitserver ~]# mkdir GitRepo [root@gitserver ~]# cd GitRepo/ [root@gitserver GitRepo]# git init --bare . Initialized empty Git repository in /root/GitRepo/ [root@gitserver GitRepo]# ls branches config description HEAD hooks info objects refs [root@gitserver svnStuff]# cd svn2git_tmpdir/ [root@gitserver svn2git_tmpdir]# git push --all /root/GitRepo Counting objects: 22, done. Delta compression using up to 2 threads. Compressing objects: 100% (20/20), done. Writing objects: 100% (22/22), 8.44 KiB, done. Total 22 (delta 9), reused 0 (delta 0) Unpacking objects: 100% (22/22), done. To /root/GitRepo * [new branch] master -> master [root@gitserver svn2git_tmpdir]# git push --tags /root/GitRepo Counting objects: 9, done. Delta compression using up to 2 threads. Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 1.18 KiB, done. Total 7 (delta 5), reused 0 (delta 0) Unpacking objects: 100% (7/7), done. To /root/GitRepo * [new tag] diegoTagOne -> diegoTagOne * [new tag] diegoTagTwo -> diegoTagTwo [root@gitserver svn2git_tmpdir]# rm -rf .git/svn .git/{logs/,}refs/remotes/svn/ [root@gitserver svn2git_tmpdir]# git configure remote.origin.url . git: 'configure' is not a git command. See 'git --help'. [root@gitserver svn2git_tmpdir]# git config remote.origin.url . [root@gitserver svn2git_tmpdir]# git config --add remote.origin.fetch +refs/remote/*:refs/heads/* BUT IF YOU NOTICE I'M MISSING SOME CHANGESETS...IN THE PLASTIC SNAPSHOT BELOW I'M MISSING CHANGESET 7-10. Link to comment Share on other sites More sharing options...
manu Posted May 2, 2012 Report Share Posted May 2, 2012 Hello Diego, I'm not able to see any "cm" command on the log. I'll be happy to help you with your tests. Can you create a fast-export of the Git/Svn rep and send it to us? We will see if after the import there's something missing. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.