views:

215

answers:

2

hello

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.

Thanks

+1  A: 

Each working copy in SVN points to one repository. What you could do is use svn switch to change your repository to point at the Google Code repository, before updating and committing the directories you wish to be stored there. You could then switch back to point your working copy at your standard repository. This does, of course, rely on the directory structures being compatible across both of the repositories.

Edd
+1  A: 

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).

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.

gWiz