TortoiseHg更新后Mercurial无法正常工作 [英] Mercurial not working after TortoiseHg update

查看:110
本文介绍了TortoiseHg更新后Mercurial无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将TortoiseHg更新为2.0.3(使用Mercurial 1.8.2).更新后,Mercurial将不再通过命令行(Windows 7 x64)运行,而是通过TortoiseHg GUI运行.尝试通过命令行使用任何Hg命令会导致错误消息'hg' is not recognized as an internal or external command, operable program or batch file.'

I recently updated TortoiseHg to 2.0.3 (with Mercurial 1.8.2). After updating, Mercurial no longer works via the command line (Windows 7 x64), but does work via the TortoiseHg GUI. Trying to use any Hg commands via the command line results in the error message 'hg' is not recognized as an internal or external command, operable program or batch file.'

我猜测我需要对TortoiseHg或Windows 7中的设置进行一些更改,以便Windows能够识别hg命令,但是我不确定该更改是什么.我对使用汞非常陌生-我几个月前安装了汞(因此需要更新),但直到最近才开始使用它.

I'm guessing I need to make some change to a setting in TortoiseHg or Windows 7 so that Windows will recognize hg commands, but I'm not sure what that change is. I am very new to using Hg - I installed it a few months ago (thus the need for an update), but only recently started using it.

推荐答案

TortoiseHg v2.X.X不再使用hg命令,而是尝试使用thg.

TortoiseHg v2.X.X no longer uses the hg command, instead try thg.

您的安装路径可能有所不同,但是通常在以下位置存在CMD:

Your install path might be different, but typically thg.CMD exists at:

C:/Program Files/TortoiseHg/bin/

如果您独立于TortoiseHg安装了Mercurial,您仍然可以访问hg可执行文件,但是大多数人只需安装TortoiseHg并获取相关的Mercurial副本,在这种情况下,您将需要使用thg命令.

If you've installed Mercurial independent of TortoiseHg you may still have access to the hg executable, but most people just install TortoiseHg and take the associated copy of Mercurial, in which case you would need to use the thg commands.

这篇关于TortoiseHg更新后Mercurial无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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