Is there a simple way to copy a directory from one repository into another repository with copying all of the history?
相关问题
- How can I set the SVN password with Emacs 23.1 bui
- If statements in .htaccess files, to enable passwo
- SVN+SSH checkout over VPN using tortoise SVN, Smar
- Mercurial compared to private branches in SVN
- Using Subversion and SourceSafe at the same time?
相关文章
- Is there a version control system abstraction for
- Intermittent “SVNException: svn: E175002: Connecti
- IntelliJ Subversion Authentication Required Dialog
- TortoiseHG and hgsubversion (Windows): “no module
- Incompatible JavaHl library loaded
- TFS vs. JIRA/Bamboo/SVN [closed]
- converting svn repo to git using reposurgeon
- SVN查看日志超时
You can create a dump file using
svnadmin dump
, then import to a new repository withsvnadmin load
.The simplest way is using:
This will create a portable format for your repository (with history) in the file
repos.out
. You can then useto load your 'dumped' repository to the new or existing one.
Chapter 5. Repository Maintenance -> Migrating Repository Data Elsewhere has this note about using
svnadmin dump
as of version 1.7:I think it should be stated that the dump file created by utilizing
can be created (from svn 1.7 and forth) using the command
This is useful when done from a remote computer and not the server.
If you don't want history, you can use
svn export
to get a clean folder without the.svn
folders and thensvn import
into your other repository.With history, you would need to use the
svnadmin dump
. You would then usesvndumpfilter
to filter for only the parts or paths you want to use before usingsvnadmin load
.Topics to read:
In case this helps others, there is svn2svn to replay changesets from one Subversion repository to another:
https://github.com/tonyduckles/svn2svn
In Subversion version 1.7 there is a new command,
svnrdump
which can be used to access a remote repository and generate the same dump format output as is generated by thesvnadmin dump
command. This allows you to usesvnrdump
withsvnadmin load
to transfer a Subversion repository.See svnrdump—Remote Subversion Repository Data Migration which has an explanation of the new command.
In Chapter 5 of the red book, the section Migrating Repository Data Elsewhere has a sub-section Repository data migration using
svnrdump
that mentions:I would also assume that the limitations of
svnadmin dump
concerning server configuration customizations such as hooks may not be transferred would also apply tosvnrdump
.