SVN:一个工作副本,两个存储库?

问题描述:

我想知道如何为一个工作副本设置两个存储库.我的服务器中需要一个存储库,以便可以在两台PC之间签入/签出;我需要在本地PC中使用另一个存储库,以便可以快速查看diff的结果(我的svn服务器位于缓慢的共享主机上)

I'd like to know how can I set two repositories for my one working copy. I need one repository in my server, so that I can check in/out between two pcs; I need another repository in my local pc, so that I can see the result of diff quickly (my svn server is on a slow shared host)

我该怎么做?

看看您可以设置cron作业,以定期从一个存储库同步到另一个存储库.但是您必须确保提交仅发生在两者之一中.

You can set up a cron job to periodically synch from one repository to the other. But you have to make sure that commits only happen to one of the two.

如果两个存储库都将提交提交,则可能是分布式版本控制系统,例如 git 市集 Mercurial 还在您的小巷里吗? Git甚至可以让您直接从一个Subversion存储库中拉出并推送到它.

If commits will happen to both repositories, maybe a distributed versioning system such as git, Bazaar or Mercurial is more up your alley? Git, for one, even lets you pull from and push to a Subversion repository directly.