在Subversion中替换整个目录树的最佳方法? [英] Best way to replace a whole directory tree in Subversion?
问题描述
更新SVN以保存最新版本的其中一个项目的最佳方法是什么?
本质上我将会执行以下操作(使用ffmpeg作为示例):
1)将当前ffmpeg文件夹重命名为ffmpeg.old
2)从net
下载新版本的ffmpeg 3)确保它和我的代码编译并一起工作
4)更新subversion现在持有新版本的ffmpeg
5)删除ffmpeg.old目录树
看看svnbook谈论供应商分支机构一>。这正是您尝试完成的
您可以使用 svn_load_dirs.pl 替换手动步骤1-5。 svn_load_dirs.pl还将跟踪新的,移动的或删除的文件。
Within my Subversion project I have a few directories that contain other open source projects that my code needs. For example ffmpeg, freetype, matrixssl and a few others.
What is the best way to update SVN to hold the the latest version of one of these projects?
Essentially I will be doing the following (using ffmpeg as an example):
1) Rename current ffmpeg folder to ffmpeg.old
2) Download new version of ffmpeg from net
3) Make sure it and my code compile and work fine together
4) Update subversion to now hold the "new" version of ffmpeg
5) Delete ffmpeg.old directory tree
You can take a look to svnbook talking about vendor branches. This is exactly what you try to accomplish
You can use svn_load_dirs.pl to replace your manual steps 1-5. svn_load_dirs.pl will also keep track of new, moved or deleted files.
这篇关于在Subversion中替换整个目录树的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!