gpt4 book ai didi

windows - Windows 上 subrepos 的 Mercurial 错误

转载 作者:可可西里 更新时间:2023-11-01 09:21:27 27 4
gpt4 key购买 nike

我对配置了 subrepos 的 Mercurial 有严重的问题。当我尝试提交或进行更新时,出现以下错误:

hg commit -m "commit" --traceback
Traceback (most recent call last):
File "mercurial\dispatch.pyc", line 87, in _runcatch
File "mercurial\dispatch.pyc", line 679, in _dispatch
File "mercurial\dispatch.pyc", line 454, in runcommand
File "mercurial\dispatch.pyc", line 733, in _runcommand
File "mercurial\dispatch.pyc", line 687, in checkargs
File "mercurial\dispatch.pyc", line 676, in <lambda>
File "mercurial\util.pyc", line 385, in check
File "mercurial\commands.pyc", line 1092, in commit
File "mercurial\cmdutil.pyc", line 1189, in commit
File "mercurial\commands.pyc", line 1087, in commitfunc
File "mercurial\localrepo.pyc", line 955, in commit
File "mercurial\subrepo.pyc", line 847, in dirty
File "mercurial\subrepo.pyc", line 783, in _gitisbare
File "mercurial\subrepo.pyc", line 717, in _gitcommand
File "mercurial\subrepo.pyc", line 721, in _gitdir
File "mercurial\subrepo.pyc", line 737, in _gitnodir
File "subprocess.pyc", line 623, in __init__
File "subprocess.pyc", line 833, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified
abort: The system cannot find the file specified

我的.hgsub:

webdriver/vendor/webdriver = [svn]http://php-webdriver-bindings.googlecode.com/svn/trunk/trunk/phpwebdriver/
app/vendor/bundles/Knp/Bundle/ZendCacheBundle = [git]http://github.com/knplabs/KnpZendCacheBundle.git
app/vendor/Zend/Cache = [git]http://github.com/knplabs/zend-cache.git
app/vendor/Zend/Filter = [git]http://github.com/knplabs/zend-filter.git

我使用 Windows XP 和 Mercurial 1.9.2。我将 svn 和 git 添加到 PATH 中,效果很好。当我尝试手动更新我的 subrepos 时没有问题,svn up 和 git pull 工作正常。

最佳答案

如果Git for Windows (mysysgit)路径中的目录是 C:\Program Files (x86)\Git\cmd,尝试将其更改为:

C:\Program Files (x86)\Git\bin

这将使 git 能够与 Mercurial 一起工作。

关于windows - Windows 上 subrepos 的 Mercurial 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8210955/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com