我有一个正在处理的主项目,其中有几个模块/目录。 主项目绑定到本地svn存储库。但是,每当我提交时,我也想将一些模块/目录也推送到Google代码存储库中。但是我只想从本地存储库更新。有没有一种方法可以自动执行?我的IDE是emacs 23。
I have have a main project I am working on, which has several modules/directories. The main project is bound to local svn repository. however, whenever I do commit, I would like to push some modules/directories to Google code repository as well. However I only want to update from local repository. Is there a way to do it automatically? my IDE is emacs 23.
谢谢
推荐答案这是 SVN书籍如何推荐。似乎很痛苦,基本上是围绕每个回购文件都有一个工作副本,然后在两个副本之间按原样复制更改(您也可以使用SVN补丁来做到这一点)。
This is how the SVN book recommends you do it. It seems pretty painful and basically revolves around having a working copy for each repo and literally copying changes between the two (you could probably also do this with SVN patches).
您可以查看使用SVK (这是SVN的分发层,向SVN添加了Git-ish功能)设置存储库镜像或合并到外部存储库。当心,SVK的文档有些混乱。显然,命令行帮助是很好的。
Alternatively you can look into using SVK (which is distribution layer for SVN, adding Git-ish functionality to SVN) to setup repository mirroring or merging to external repos. Beware, the documentation for SVK is a little disorganized. Apparently the command-line help is good.
更多推荐
svn提交到多个存储库
发布评论