English 中文(简体)
SVN-How 承诺单独存放的档案
原标题:SVN-How to commit a file to separate repositories
  • 时间:2010-12-29 11:09:45
  •  标签:
  • svn

I m 寻找一种解决办法,在这种解决办法中,我能够用SVN向2个不同的存放处存放档案。

我只需要2个储存库,一个是我的系统中的当地存放处,另一个是生产服务器的存放处,当我改用当地档案时,我怎么能够把档案交给不同地点的两个不同存放处。

当地存放处的建立方式对开发商来说是可行的。 生产存放处的结构各不相同。

问题回答

我知道,这是不可能的。 一份工作副本可在某个时间由一个存放处控制。

This may be achievable using a post-commit hook, but it s going to be complicated.

最容易的方法可能是在当地有两张名录,这张名录反映了另一个。 不过,你还需要做两项承诺。

这种做法类似于坏的做法。 你们是否相信这一点是明智和必要的? http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html“rel=“nofollow”external?

我认为,唯一的次转用解决办法是使用hoo子,更具体地说,在你的当地服务器中,用 post子向遥远的服务器 submits。 显而易见的缺点是,你必须用手法来编码,而且看上去做很多工作。

我假定这种安排是把当地版本用于你们发展的工作。 我认为,人们通常使用第三方软件来做到这一点。 你可以:

  • Install another version control system (such as git, mercurial or bazaar) for local versions. Just remember to omit your local versions database from Subversion.
  • Use SVK on top of Subversion, so you can choose what to commmit to the remote repository.
  • Use an IDE that features custom local versions.




相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签