Mercurial:如何更改命名空间,但仍然能够从 fork 中提取更改
我有以下问题。我正在使用 C# MVC3 进行开发。
我有一个解决方案,我们称之为解决方案 A,其中我开发了一组基本特性和功能。然后,我将其分叉并将解决方案中项目的命名空间更改为更适合特定站点的名称。 TheHotSauce 不是一个好的生产名称:) 我现在想将解决方案 A 的更新拉入这个新解决方案中,但似乎更改命名空间和文件夹结构导致了这里的问题。
请有人建议或解释一个好的方法。
I have the following problem. I am developing in C# MVC3.
I have a solution, lets call it Solution A, in which I have developed a base set of features and functionality. I am then forking this and changing the namespace of the projects in the solution to something more suitable to the specific site. TheHotSauce is not a good production name:) I now want to pull updates to Solution A into this new solution, but is seems that changing the namespace and hence the folder structure has caused issues here.
Please would someone suggest or explain a good approach to this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您需要更新默认拉取路径。请参阅
hg 帮助路径
。它解释说您只需编辑.hg\hgrc
文件。现在它包含类似这样的内容:您只需将路径更新为解决方案的新名称即可。这将使
hg pull
和hg Push
默认使用该位置。It sounds like you need to update the default pull path. See
hg help paths
. It explains that you an just edit the.hg\hgrc
file. It contains something like this now:and you simply update the path to the new name of your solution. That will make
hg pull
andhg push
use that location by default.