如何使用Visual Studio 2010中的Mercurial? [英] How to use Mercurial from Visual Studio 2010?

查看:85
本文介绍了如何使用Visual Studio 2010中的Mercurial?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

版本控制noob警报

Version Control noob alert

我已经将Mercurial,TortoiseHg和VisualHG都安装到了Visual Studio 2010中.我已经在Visual Studio中将源控件设置为Mercurial.

I've already installed both Mercurial, TortoiseHg and VisualHG into Visual Studio 2010. I've set in Visual Studio my source control to Mercurial.

当我右键单击解决方案时,我已经在出现的上下文菜单中看到了HG的按钮.

When I right click on my solution, I already see HG's buttons in the context menu that appears there.

我现在的问题是,如何使此版本控制功能起作用?似乎我必须先进行某种配置,因为当我单击"HG状态"时,它告诉我解决方案不受Mercurial版本控制".

My question now is, how do I make this version control thing work? It seems I'll have to make some kind of configuration before, as it tells me "Solution is not under Mercurial version control" when I click in "HG Status".

谢谢

推荐答案

不确定在Visual Studio中如何执行此操作,但可以从命令行轻松进行.只是 退出VS并转到要置于源代码管理下的项目的根文件夹下的命令提示符,然后键入"hg init".然后加载解决方案,并确认hg是选定的源代码提供程序.

Not sure how to do this within Visual Studio but it is easy to do from the command line. Just exit VS and go to a command prompt at the root folder of the project(s) you want to put under source control and type "hg init". Then load the solution and verify that hg is the selected source code provider.

这篇关于如何使用Visual Studio 2010中的Mercurial?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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