how to handle svn properties (externals, executables) to commit into a separate repository
I am quite new to svn. The following is my problem.
I have the code in the old repository http://old_svn_server/tags/sw_version1, which has the properties such as some external references, executables, etc. I want to create a new repository, let's say http://new_svn_server/user, and put the code there.
How should I work this out in an efficent and right way, like keep using the sam开发者_JAVA百科e externals, keep executables permission, and others (svn:special, etc.)?
I am thinking to use the svn export to get the clean workcopy and commit to the new repository. Then, set the properties one by one. But This is very tedious and error prone.
Thanks for any suggestions.
If you have access to old_svn_server
and new_svn_server
, you could use svnadmin dump
to write out the complete history to a temporary file, transfer that file to the machine of new_svn_server
and then do an svnadmin load
to push the history into new_svn_server
:
On old_svn_server
:
svnadmin dump /path/to/oldrepo/tags/sw_version1 > dumpfile
Then, fetch dumpfile
and put it on new_svn_server
and then
svnadmin load /path/to/newrepo < dumpfile
精彩评论