Я хочу перейти от Google Code и Mercurial к Git и GitHub, сохраняя все ветви и историю версий.Миграция Mercurial в GitHub
До сих пор кажется, что плагин Hg-Git mercurial (http://hg-git.github.com/) является моим единственным вариантом. Я попытался следовать инструкциям по установке, но чуть ли не над головой. Вот где я:
- Я установил Microsoft Visual C++ 2008
- Я установил Python 2.7.3
- Я установил setuptools
- Я добавил следующее к моей Mercurial.ini в TortoiseHg:
[extensions]
hgext.bookmarks =
hggit =
Сейчас, когда я запускаю:
C:\Python27\Scripts>easy_install.exe hg-git
я получаю следующее:
Searching for hg-git
Best match: hg-git 0.3.3
Processing hg_git-0.3.3-py2.7.egg
hg-git 0.3.3 is already the active version in easy-install.pth
Using c:\python27\lib\site-packages\hg_git-0.3.3-py2.7.egg
Processing dependencies for hg-git
Searching for dulwich>=0.8.0
Reading http://pypi.python.org/simple/dulwich/
Reading http://samba.org/~jelmer/dulwich
Reading http://launchpad.net/dulwich
Best match: dulwich 0.8.5
Downloading http://samba.org/~jelmer/dulwich/dulwich-0.8.5.tar.gz
Processing dulwich-0.8.5.tar.gz
Running dulwich-0.8.5\setup.py -q bdist_egg --dist-dir c:\users\lee\appdata\local\temp\easy_install-3qgeev\dulwich-0.8.5\egg-dist-tmp-ciyt_4
, а затем кучу ошибок, которые выглядят следующим образом:
Traceback (most recent call last):
File "C:\Python27\Scripts\easy_install-script.py", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1712, in main
with_ei_usage(lambda:
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1700, in with_ei_usage
return f()
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1716, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 446, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 481, in install_item
self.process_distribution(spec, dists[0], deps, "Using")
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 519, in process_distribution
[requirement], self.local_index, self.easy_install
File "C:\Python27\lib\site-packages\pkg_resources.py", line 563, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "C:\Python27\lib\site-packages\pkg_resources.py", line 799, in best_match
return self.obtain(req, installer) # try and download/install
Не уверен, что попробовать следующий. Я также пробовал следующие советы от Cloning github repo with hggit, но мне не хватает чего-то очевидного. Любая помощь будет принята с благодарностью.
Вы посмотрели: [Преобразование репозитория Mercurial (hg) в Git на Windows (7)] (http://stackoverflow.com/questions/3267232/converting-a-mercurial-hg-repository-to -git-на-Windows-7)? –
Я помню, что я использовал Tailor (http://progetti.metapensiero.it/tailor) для некоторых преобразований репозитория. – liori