gpt4 book ai didi

git - 将 Mercurial 项目 (Bitbucket) 切换到 Git (Github)

转载 作者:太空狗 更新时间:2023-10-29 14:01:50 25 4
gpt4 key购买 nike

我正在尝试将我的公共(public)项目从 bitbucket 转移到 github。

我看到了 hg-git扩展程序将帮助我完成这项工作。

$ easy_install hg-git

Searching for hg-git
Best match: hg-git 0.3.0
Processing hg_git-0.3.0-py2.7.egg
hg-git 0.3.0 is already the active version in easy-install.pth

Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hg_git-0.3.0-py2.7.egg
Processing dependencies for hg-git
Searching for dulwich>=0.8.1

为什么?来自 dulwich官网我看0.8.1还没出来

Reading http://pypi.python.org/simple/dulwich/
Reading http://samba.org/~jelmer/dulwich
Reading http://launchpad.net/dulwich
No local packages or download links found for dulwich>=0.8.1

如果我尝试使用 github 中提到的更复杂的方式

我安装了 dulwich 0.8.0

$ which dulwich                                                                                 
/Library/Frameworks/Python.framework/Versions/2.7/bin/dulwich

我克隆了 hg-git 存储库并从我的 hgrc 正确链接它。然而,当我尝试使用 hg-git 时,它会提示

*** failed to import extension hggit from ~/.bin/hg-git/hggit: No module named dulwich.errors

所以,显然我无法安装 hg-git,我卡住了。


更新

>>> import dulwich
>>> import dulwich.errors
>>> dulwich.errors
<module 'dulwich.errors' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dulwich-0.8.0-py2.7-macosx-10.6-intel.egg/dulwich/errors.pyc'>
>>> dulwich
<module 'dulwich' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dulwich-0.8.0-py2.7-macosx-10.6-intel.egg/dulwich/__init__.pyc'>

最佳答案

关于git - 将 Mercurial 项目 (Bitbucket) 切换到 Git (Github),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7388814/

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