开发者

subversion synchronize part of a repository

开发者 https://www.devze.com 2023-02-19 01:09 出处:网络
We have a repository hosted in-h开发者_如何学JAVAouse and we want to synchronize some of the projects on an online repository. By looking at svnsync command, it seems that the synchronization is for a

We have a repository hosted in-h开发者_如何学JAVAouse and we want to synchronize some of the projects on an online repository. By looking at svnsync command, it seems that the synchronization is for all the repository. Is there a way to restrict the synchronization to some directories?


My goal was to make my code available to the public using Google Code. Fortunately they provide a Mercurial repository. So I ended up mixing both SVN and Mercurial.

  • Clone the project from Google Code on the local machine into folder project-hg
  • Checkout the project using the in-house SVN into the folder project-hg
  • Add and commit the files using Mercurial and ignore .svn folders
  • Push the changes to Google Code

Every time I want to synchronize my project with Google Code I do

  • svn update
  • Commit the modification using Mercurial
  • Push the changes to Google Code

I will lose the revision history from SVN but it’s not a problem for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消