gpt4 book ai didi

svn - 使用 "abort: unable to cope with svn output"命令将 Mercurial 存储库转换为 SVN 存储库时出现错误 "hg.exe convert"

转载 作者:行者123 更新时间:2023-12-05 05:58:19 29 4
gpt4 key购买 nike

场景

我正在尝试将 Mercurial 存储库转换为 SVN。 (我不打算永远把它留在 SVN 中。请相信我确实需要它在 SVN 中。我们最终会将其移至 Git,但不是今天。)

命令

cd into Hg working copy.
hg convert --source-type hg --dest-type svn . ..\svn_repo_output_dir\

输出

它在完成之前中止:

unexpected svn output:
abort: unable to cope with svn output

有谁知道我如何找出“hg convert”命令不断死掉的 SVN 输出,这样我就可以解决这个问题?

更新(添加调试信息)

有了三个新功能(--verbose、--debug、--traceback),命令如下:

hg convert --verbose --debug --traceback --source-type hg  --dest-type svn . ..\svn_layout7\

这是它的失败输出:

Committing transaction...
Committed revision 89.
running: svn propset hg:convert-rev 4e6d788ad9389d8b8740f1c69dd3b8c76afc9e29 --revprop "--revision=89"
svn: E165006: Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook
77 #2140: Fixed "APP_NOT_INSTALLED" error in case InDesign CS5.5 is installed
source: e634a2c46761335bc78a04d97908ef64792c1742
76 Merge
source: 1a6a7e9ae244ff9976a7d1b84ff9241ea76169d4
running: svn commit "--username=ALady" "--file=c:\users\my_username\appdata\local\temp\hg-convert-jvaadp" "--encoding=utf-8"
unexpected svn output:
run hg source post-conversion action
Traceback (most recent call last):
File "mercurial\scmutil.pyo", line 165, in callcatch
File "mercurial\dispatch.pyo", line 367, in _runcatchfunc
File "mercurial\dispatch.pyo", line 1021, in _dispatch
File "mercurial\dispatch.pyo", line 756, in runcommand
File "mercurial\dispatch.pyo", line 1030, in _runcommand
File "mercurial\dispatch.pyo", line 1018, in <lambda>
File "mercurial\util.pyo", line 1670, in check
File "hgext\convert\__init__.pyo", line 450, in convert
File "hgext\convert\convcmd.pyo", line 616, in convert
File "hgext\convert\convcmd.pyo", line 525, in convert
File "hgext\convert\convcmd.pyo", line 492, in copy
File "hgext\convert\subversion.pyo", line 1332, in putcommit
Abort: unable to cope with svn output
abort: unable to cope with svn output

最佳答案

这不是一个精确的解决方案,但可能会帮助您找到一个。

我找到一个 report他们推荐的类似错误:

From hg help -v convert:

  -v --verbose           enable additional output
--debug enable debugging output

The following might help developers figuring out exactly where in theprocess it failed:

--traceback         always print a traceback on exception

实际上,这些在很多情况下都是很好的调试技巧。

(您可能想尝试这些选项并向问题添加更多信息,如果它看起来是相关的)。

关于svn - 使用 "abort: unable to cope with svn output"命令将 Mercurial 存储库转换为 SVN 存储库时出现错误 "hg.exe convert",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68551178/

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