1

我有一个名为“climate-sensitive-gcm”的 mercurial 存储库,我正在尝试使用 Linux 终端中的快速导出方法将其转换为 git。我在命令行中输入以下内容:

$ ~/fast-export/hg-fast-export.sh -r /home/brandonsmith/climate-sensitivity-gcm/

以下错误与 git-fast-import 统计信息一起被取消:

Traceback (most recent call last):
  File "/nazko/home/brandonsmith/fast-export/hg2git.py", line 31, in setup_repo
    myui=ui.ui(interactive=False)
TypeError: __init__() got an unexpected keyword argument 'interactive'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nazko/home/brandonsmith/fast-export/hg-fast-export.py", line 529, in <module>
    notes=options.notes,encoding=encoding,fn_encoding=fn_encoding))
  File "/nazko/home/brandonsmith/fast-export/hg-fast-export.py", line 403, in hg2git
    ui,repo=setup_repo(repourl)
  File "/nazko/home/brandonsmith/fast-export/hg2git.py", line 34, in setup_repo
    myui.setconfig('ui', 'interactive', 'off')
  File "/home/brandonsmith/anaconda3/lib/python3.7/site-packages/mercurial/ui.py", line 553, in setconfig
    cfg.set(section, name, value, source)
  File "/home/brandonsmith/anaconda3/lib/python3.7/site-packages/mercurial/config.py", line 96, in set
    ), b'config section may not be unicode strings on Python 3'
AssertionError: b'config section may not be unicode strings on Python 3'
git-fast-import statistics:
---------------------------------------------------------------------
Alloc'd objects:       5000
Total objects:            0 (         0 duplicates                  )
      blobs  :            0 (         0 duplicates          0 deltas of          0 attempts)
      trees  :            0 (         0 duplicates          0 deltas of          0 attempts)
      commits:            0 (         0 duplicates          0 deltas of          0 attempts)
      tags   :            0 (         0 duplicates          0 deltas of          0 attempts)
Total branches:           0 (         0 loads     )
      marks:           1024 (         0 unique    )
      atoms:              0
Memory total:          2282 KiB
       pools:          2048 KiB
     objects:           234 KiB
---------------------------------------------------------------------
pack_report: getpagesize()            =       4096
pack_report: core.packedGitWindowSize = 1073741824
pack_report: core.packedGitLimit      = 8589934592
pack_report: pack_used_ctr            =          0
pack_report: pack_mmap_calls          =          0
pack_report: pack_open_windows        =          0 /          0
pack_report: pack_mapped              =          0 /          0
---------------------------------------------------------------------

我不明白这些错误是什么意思,也不明白我试图将我的 hg-repo 转换为 git-repo 有什么问题。任何帮助,将不胜感激。

4

0 回答 0