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

发布于 2024-12-11 05:48:43 字数 3224 浏览 0 评论 0原文

我无法在我的机器上更新 Mercurial 存储库。当我执行更新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

我尝试执行rm -rf myrepo,然后执行hg clone ssh: //[email protected]/myrepo 但该命令正确下载存储库,但当 hg 尝试将存储库更新为分支默认值时,我收到相同的错误,更具体地说,我明白了:

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

使用引用引用时,我收到了与之前类似的错误。我什至尝试在我的系统上重新安装 Mercurial,但没有任何运气。

您能指出是什么问题吗?回购头似乎没问题,(我可以在其他机器上克隆更新),并且我能够克隆更新我系统上的其他 hg 存储库。这与子存储库有什么关系吗?引文暗示了这一点。

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

I am unable to update mercurial repos on my machine. I get the following error when I do an update 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

I've tried to do rm -rf myrepo and then do hg clone ssh://[email protected]/myrepo but that command downloads the repo correctly but I get the same error when hg tries to update the repo to branch default, more specifically I get this:

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

with trackback, I get an error similar to what I was getting before. I have even tried to re-install mercurial on my system without any luck.

Can you please point to what is the problem. The repo head seems to be alright, (I can clone and update on other machines), and I am able to clone or update other hg repos on my system. Can this have anything to do with subrepos? The trackback suggests it.

My system details: 32-bit Ubuntu 11.10, running mercurial version 1.9.1.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不回头走下去 2024-12-18 05:48:43

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

It seems that the source repo has an svn subrepo, and you have no subversion client installed (or svn is not in the search path).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文