hg + svn克隆存储库错误

时间:2012-03-25 10:29:53

标签: python svn mercurial swig

我正在尝试在Windows上克隆svn存储库,如下所述:

  

https://www.mercurial-scm.org/wiki/HgSubversion

在这里:

  

https://www.mercurial-scm.org/wiki/WorkingWithSubversion

我通常使用x64 2.6.6 python,但我也需要32位所以我有32位2.7我已经把swig python svn绑定来自

  

http://sourceforge.net/projects/win32svn/

问题是当我克隆mercurial似乎使用2.6.6没有绑定因此我猜这个错误:

** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 2.1)
** Extensions loaded: hgsubversion
Traceback (most recent call last):
  File "hg", line 42, in <module>
  File "mercurial\dispatch.pyo", line 27, in run
  File "mercurial\dispatch.pyo", line 64, in dispatch
  File "mercurial\dispatch.pyo", line 87, in _runcatch
  File "mercurial\dispatch.pyo", line 683, in _dispatch
  File "mercurial\dispatch.pyo", line 465, in runcommand
  File "mercurial\dispatch.pyo", line 737, in _runcommand
  File "mercurial\dispatch.pyo", line 691, in checkargs
  File "mercurial\dispatch.pyo", line 680, in <lambda>
  File "mercurial\util.pyo", line 456, in check
  File "mercurial\extensions.pyo", line 139, in wrap
  File "mercurial\util.pyo", line 456, in check
  File "C:\Users\IG\Documents\hgsubv\hgsubversion\wrappers.py", line 495, in c
lone
    orig(ui, source, dest, **opts)
  File "mercurial\util.pyo", line 456, in check
  File "mercurial\commands.pyo", line 1157, in clone
  File "mercurial\extensions.pyo", line 184, in wrap
  File "C:\Users\IG\Documents\hgsubv\hgsubversion\wrappers.py", line 484, in h
gclonewrapper
    data['srcrepo'], data['dstrepo'] = orig(ui, *args, **opts)
  File "mercurial\hg.pyo", line 350, in clone
  File "mercurial\localrepo.pyo", line 2265, in clone
  File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnrepo.py", line 70, in wra
pper
    return fn(self, *args, **opts)
  File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnrepo.py", line 89, in pul
l
    return wrappers.pull(self, remote, heads, force)
  File "C:\Users\IG\Documents\hgsubv\hgsubversion\wrappers.py", line 353, in p
ull
    firstrun)
  File "C:\Users\IG\Documents\hgsubv\hgsubversion\replay.py", line 67, in conv
ert_rev
    svn.get_replay(r.revnum, editor, meta.revmap.oldest)
  File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnwrap\svn_swig_wrapper.py"
, line 403, in get_replay
    self.init_ra_and_client()
  File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnwrap\svn_swig_wrapper.py"
, line 226, in init_ra_and_client
    raise common.SubversionConnectionException(msg)
hgext_hgsubversion.svnwrap.common.SubversionConnectionException: Failed to open Subversion repository;

我在ENV VARIABLES中将2.6.6放在2.6.6之前,当我写入cmd时我写了python,我看到2.7作为我的defult python dist。

我错过了什么?

感谢

编辑:

我使用内置mercurial的64位窗口使用togise hg,这可能是问题吗?

1 个答案:

答案 0 :(得分:1)

您忘记包含错误消息的最后一行“请尝试运行'svn ls 有关详情的“回购网址”。“,但您完成了svn ls,当然可以吗?

如果它是具有深刻历史的大回购,那么不建议从开始克隆到HEAD 。克隆一些修订并停止休息

或阅读this topic获取subvertpy,subvertpy绑定详细信息和Subvertpy Binary for Win32