SVN:一个工作副本,两个存储库? [英] SVN: one working copy, two repositories?

查看:111
本文介绍了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.

这篇关于SVN:一个工作副本,两个存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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