Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial(hg)更新错误,中止:没有这样的文件或目录_Mercurial_Mercurial Subrepos - Fatal编程技术网

Mercurial(hg)更新错误,中止:没有这样的文件或目录

Mercurial(hg)更新错误,中止:没有这样的文件或目录,mercurial,mercurial-subrepos,Mercurial,Mercurial Subrepos,我无法在我的机器上更新mercurial repos。我在执行更新时遇到以下错误hg up--traceback: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 87, in _runcatch return _dispatch(req) File "/usr/lib/python2.7/dist-packages/mer

我无法在我的机器上更新mercurial repos。我在执行更新时遇到以下错误
hg up--traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 87, in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 679, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 454, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 733, in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 687, in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 676, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 385, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 5131, in update
    ret = hg.update(repo, rev)
  File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 395, in update
    stats = mergemod.update(repo, node, False, False, None)
  File "/usr/lib/python2.7/dist-packages/mercurial/merge.py", line 554, in update
    stats = applyupdates(repo, action, wc, p2, pa, overwrite)
  File "/usr/lib/python2.7/dist-packages/mercurial/merge.py", line 329, in applyupdates
    subrepo.submerge(repo, wctx, mctx, wctx.ancestor(mctx), overwrite)
  File "/usr/lib/python2.7/dist-packages/mercurial/subrepo.py", line 156, in submerge
    mctx.sub(s).get(r)
  File "/usr/lib/python2.7/dist-packages/mercurial/subrepo.py", line 668, in get
    if self._svnversion >= (1, 5):
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 169, in __get__
    result = self.func(obj)
  File "/usr/lib/python2.7/dist-packages/mercurial/subrepo.py", line 567, in _svnversion
    output, err = self._svncommand(['--version'], filename=None)
  File "/usr/lib/python2.7/dist-packages/mercurial/subrepo.py", line 555, in _svncommand
    universal_newlines=True, env=env, **extrakw)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
abort: No such file or directory
使用trackback,我得到了一个与以前类似的错误。我甚至在没有任何运气的情况下尝试在我的系统上重新安装mercurial

你能指出问题所在吗。回购头似乎正常(我可以在其他机器上克隆和更新),并且我可以在我的系统上克隆或更新其他hg回购。这和次级回购有什么关系吗?回溯说明了这一点


我的系统详细信息:32位Ubuntu 11.10,运行mercurial 1.9.1版。

源repo似乎有一个svn子repo,并且您没有安装subversion客户端(或者svn不在搜索路径中)。

这些机器运行的是什么操作系统?您试图克隆到的目录结构有多深?此外,Mercurial用户列表可能是回答此类问题的更好场所:谢谢Laurens,这是我的系统配置:32位Ubuntu 11.10,运行Mercurial 1.9.1。我不知道dir结构的深度,但我可以想象它小于15。我也会在hg邮件列表中发布。谢谢!你是对的!我只需要安装svn。再次感谢。你应该在Mercurial bug tracker中对此进行登记!这个错误可以处理得更好。它刚修好。Mercurial 2.0应该有一条更好的错误消息。哇,Laurens,谢谢,我刚刚看到这条消息,很抱歉没有这么做。但是,感谢您承担责任。如果存在git subrepo并且没有安装git,那么Mercurial 2.1.1也会有同样的问题。
destination directory: foo
requesting all changes
adding changesets
adding manifests
adding file changes
added 6270 changesets with 20990 changes to 3682 files
updating to branch default
abort: No such file or directory