SVN to Git using svn-migration-scripts -
clone of svn repo git repo works fine.
have problem
java -dfile.encoding=utf-8 -jar c:\svn-migration-scripts.jar clean-git --force
command listed above should convert remotes tags local ones.
recieve:
# creating annotated tags... tag has diverged: 1.0_rc1 creating annotated tag '1.0_rc1' @ refs/remotes/tags/1.0_rc1. # creating local branches... # checking obsolete tags... svn: e215004: authentication failed , interactive prompting disabled; see t --force-interactive option svn: e215004: unable connect repository @ url 'http://127.0.0.1/svn/dri velearner/tags' svn: e215004: no more credentials or tried many times. authentication failed deleting git tag '1.0_rc1' not in subversion. deleted tag '1.0_rc1' (was d200bf6) # checking obsolete branches... svn: e215004: authentication failed , interactive prompting disabled; see t --force-interactive option svn: e215004: unable connect repository @ url 'http://127.0.0.1/svn/dri velearner/branches' svn: e215004: no more credentials or tried many times. authentication failed no obsolete branches remove. # cleaning tag names # cleaning branch names
i use local winxp, java 1.7_65, visualsvn server(http, port 80). repo available in read/write mode.
funny thing i've done process on other repo succesfully after same problems, don't know i've done.
have solution?
this svn-migration-script.java atlassian crap. here detailed instruction how migrate svn git minimum of third party soft , preserve local branches , tags.
detailed tutorial: http://www.sailmaker.co.uk/blog/2013/05/05/migrating-from-svn-to-git-preserving-branches-and-tags-3/
svn server:
url: [svn_address]/[project_name]/[project_name]
user: [user]
pass: [pass]
(access user [user]: rw)
target:
c:[eclipse_workspace][project_name] (create directories if don't exist)
procedure:
++ install svn , git (with git bash) in system (optionally add 'bin' directories path)
++ make sure svn serwer works in http mode (not in https)
++ make authors.txt if necessary
++ clone svn git: git svn clone --stdlayout --authors-file=c:\authors.txt
[svn_address]/[project_name] c:[eclipse_workspace][project_name] [user] [pass]
command rebase -b 0x64000000 "c:\program files\git\bin\libsvn_repos-1-0.dll"
(or analogical) can useful if error mapping appear
++ run git bash context menu (you should have installed this)
++ type git branch -a
check branches , tags
++ type in git bash:
attach branches:
for branch in `git branch -r | grep "branches/" | sed 's/ branches\///'`; git branch $branch remotes/branches/$branch done
to attach tags:
for tag in `git branch -r | grep "tags/" | sed 's/ tags\///'`; git tag $tag remotes/tags/$tag done
++ create bare git repository , push there [project] (you loose svn dependencies)
++ clone [project] target location
Comments
Post a Comment