在Subversion中替换整个目录树的最佳方法? [英] Best way to replace a whole directory tree in Subversion?

查看:133
本文介绍了在Subversion中替换整个目录树的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Subversion项目中,我有几个目录包含我的代码需要的其他开源项目。例如ffmpeg,freetype,matrixssl等等。



更新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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆