我有一种让水银认识我的编辑问题。我有一个文件c:\windows\notepad.exe
并在命令提示符下输入“notepad”。我可以通过使用“-m
”参数来提交提交标题。但是一个简单的“hg commit
”会引发错误。水银主编:“中止:系统找不到指定的文件”
调用为 “hg --traceback commit
” 带来了:
Traceback (most recent call last):
File "mercurial\dispatch.pyc", line 47, in _runcatch
File "mercurial\dispatch.pyc", line 466, in _dispatch
File "mercurial\dispatch.pyc", line 336, in runcommand
File "mercurial\dispatch.pyc", line 517, in _runcommand
File "mercurial\dispatch.pyc", line 471, in checkargs
File "mercurial\dispatch.pyc", line 465, in <lambda>
File "mercurial\util.pyc", line 401, in check
File "mercurial\commands.pyc", line 708, in commit
File "mercurial\cmdutil.pyc", line 1150, in commit
File "mercurial\commands.pyc", line 706, in commitfunc
File "mercurial\localrepo.pyc", line 836, in commit
File "mercurial\cmdutil.pyc", line 1155, in commiteditor
File "mercurial\cmdutil.pyc", line 1184, in commitforceeditor
File "mercurial\ui.pyc", line 361, in edit
File "mercurial\util.pyc", line 383, in system
File "subprocess.pyc", line 470, in call
File "subprocess.pyc", line 621, in __init__
File "subprocess.pyc", line 830, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified
abort: The system cannot find the file specified
我已经尝试设置HGEDITOR环境变量, “visual =
” 和 “editor =
” 在Mercurial.ini
文件中设置。我只尝试完整路径以及命令。我也尝试将notepad.exe文件复制到当前文件夹以及mercurial文件夹中。
理想我想用编辑器在这个位置“C:\PortableApps\Notepad++Portable\Notepad++Portable.exe
”,但在这个阶段,我将很高兴与任何编辑器!
HG debugconfig输出:
c:\wamp\www\SiteAB.com\web>hg debugconfig
bundle.mainreporoot=c:\wamp\www\SiteAB.com\web
ui.username=killroy
ui.shell=true
ui.verbose=true
ui.visual="C:\PortableApps\Notepad++Portable\Notepad++Portable.exe"
ui.editor="C:\PortableApps\Notepad++Portable\Notepad++Portable.exe"
你是否在使用win7 64bit?我得到了类似的问题,并开始在https://bitbucket.org/tortoisehg/stable/issue/1361/cannot-successfully-run-merge-tools-on-win-7-64 – Ash 2010-07-09 02:10:07
报告这是32位Win XP的。 – Killroy 2010-07-13 08:42:14
我似乎已通过重新安装操作系统解决了我的问题。极端措施... – Ash 2010-07-15 01:27:35