开发代码时如何使用 Internet Subversion 存储库? [英] How to use an Internet Subversion respository when developing code?

查看:51
本文介绍了开发代码时如何使用 Internet Subversion 存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经把自己描绘成一个使用 CodePlex 的 Subversion 项目的问题 - 为此我寻求帮助 此处.我有一个本地存储库,而 CodePlex 拥有该项目的 Internet 存储库,两者不能混用 :-(.

I've painted my self into a problem working with a Subversion project from CodePlex - for this I asked for help here. I have a local repository and CodePlex has it's Internet repository for the project, and the two don't mix :-(.

但我亲爱的已故父亲曾经告诉我,聪明人和聪明人之间的区别在于,聪明人不会进入聪明人能找到的陷阱.换句话说:我一定是做错了什么.所以:

But my dear departed dad used to tell me that the difference between a clever man and a wise man is that the wise man does not enter the trap a clever man find his way out of. In other words: I must have been doing something wrong. So:

假设您是一群开发人员.Internet 上有一个 Subversion 控制的项目,您想开始修改.您想在本地处理它,更改它以满足您的需求.您需要本地版本控制.您想控制哪些 Internet 更改接受到您的存储库 - 那些相关且重要且不会引起噪音的更改.您希望将您的一些本地更改提交到 Internet - 那些您确定是稳定的,并且与整个社区相关.

Say you're a group of a few developers. There's a Subversion controlled project on the Internet you want to start modifying. You want to work on it locally, changing it to suit your needs. You want local version control. You want to control which Internet changes to accept to your repository - those that are relevant and important and don't cause noise. You want to commit to the Internet some of your local changes - those that you're sure that are stable, and that are relevant to the whole community.

这种操作方法在我看来是常识,但我从未参与过开源项目.所以:1.这确实是一种常见的操作方法吗?2. 你如何在不陷入困境的情况下使用 Subversion 进行操作?

This method of operation seems to me common sense, but then I've never worked on an open source project. So: 1. Is this indeed a common method of operation and 2. How do you go about doing it with Subversion without getting into trouble?

推荐答案

将来自外部源(供应商丢弃")的更改吸收到您自己的本地存储库中在 SVN 书中的 供应商分支机构.

Absorbing changes from an external source ("vendor drops") into your own local repository is covered in the SVN book in the section Vendor Branches.

或者,您可以使用合并命令从存储库 A 中的文件夹中挑选修订并将这些更改应用于存储库 B 中文件夹的工作副本.合并命令似乎对此有一些支持(至少在最新版本中),所以它可能很像在本地分支之间合并(减去自动合并跟踪).

Alternatively, you could just use the merge command to cherry pick revisions from a folder in repository A and apply those changes to a working copy of a folder in repository B. The merge command seems to have some support for this (at least in the latest version) so it probably works much like merging between local branches (minus the automatic merge tracking).

这篇关于开发代码时如何使用 Internet Subversion 存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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