Issue #180 new

Failure cloning a Subversion repository

Russel Winder
created an issue

I just tried to clone http://scons-addons.googlecode.com/svn and things started well, getting to r135 (of 407), but then: {{{ unknown exception encountered, details follow report bug details to http://mercurial.selenic.com/bts/ or mercurial@selenic.com Mercurial Distributed SCM (version 1.4.3) Extensions loaded: rebase, svn Traceback (most recent call last): File "/usr/bin/hg", line 27, in <module> mercurial.dispatch.run() File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 16, in run sys.exit(dispatch(sys.argv[1:])) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 30, in dispatch return _runcatch(u, args) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 46, in _runcatch return _dispatch(ui, args) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 454, in _dispatch return runcommand(lui, repo, cmd, fullargs, ui, options, d) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 324, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 505, in _runcommand return checkargs() File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 459, in checkargs return cmdfunc() File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 453, in <lambda> d = lambda: util.checksignature(func)(ui, *args, cmdoptions) File "/usr/lib/pymodules/python2.6/mercurial/util.py", line 386, in check return func(args, kwargs) File "/usr/lib/pymodules/python2.6/mercurial/extensions.py", line 116, in wrap util.checksignature(origfn), *args, kwargs) File "/usr/lib/pymodules/python2.6/mercurial/util.py", line 386, in check return func(args, kwargs) File "/home/Checkouts/Mercurial/HgSubversion/hgsubversion/wrappers.py", line 390, in clone update=not opts.get('noupdate')) File "/usr/lib/pymodules/python2.6/mercurial/hg.py", line 292, in clone dest_repo.clone(src_repo, heads=revs, stream=stream) File "/usr/lib/pymodules/python2.6/mercurial/localrepo.py", line 2140, in clone return self.pull(remote, heads) File "/home/Checkouts/Mercurial/HgSubversion/hgsubversion/svnrepo.py", line 43, in wrapper return fn(self, *args, opts) File "/home/Checkouts/Mercurial/HgSubversion/hgsubversion/svnrepo.py", line 57, in pull return wrappers.pull(self, remote, heads, force) File "/home/Checkouts/Mercurial/HgSubversion/hgsubversion/wrappers.py", line 277, in pull close = pullfunshave_replay File "/home/Checkouts/Mercurial/HgSubversion/hgsubversion/replay.py", line 28, in convert_rev svn.get_replay(r.revnum, editor) File "/home/Checkouts/Mercurial/HgSubversion/hgsubversion/svnwrap/svn_swig_wrapper.py", line 538, in get_replay self.init_ra_and_client() File "/home/Checkouts/Mercurial/HgSubversion/hgsubversion/svnwrap/svn_swig_wrapper.py", line 275, in init_ra_and_client raise SubversionConnectionException(msg) hgext_svn.svnwrap.svn_swig_wrapper.SubversionConnectionException: Failed to open Subversion repository; please try running 'svn ls http://scons-addons.googlecode.com/svn' for details. |> }}} running the command as requested: {{{ |> svn ls http://scons-addons.googlecode.com/svn branches/ tags/ trunk/ |> }}}

Comments (10)

  1. Russel Winder reporter

    I get exactly the same problem trying to clone the Waf repository http://waf.googlecode.com/svn . Bazaa/bzr-svn and Git/git-svn are able to deal with this repository. I wonder if there is an issue with hgsubversion interaction with GoogleCode? (I recollect at some time in the past there has to be some jiggery pokery in bzr-svn because of some specific issues with GoogleCode.)

    |> svn ls  http://waf.googlecode.com/svn
    branches/
    tags/
    trunk/
    wiki/
    
  2. iloncar

    The same error when cloning https://anonsvn.springframework.org/svn/spring-ide:

    [r2948] cdupuis: IDE-927: project scan now considers configured file extensions; make sure the custom extensions are configured with the XM
    ** unknown exception encountered, details follow
    ** report bug details to http://mercurial.selenic.com/bts/
    ** or mercurial@selenic.com
    ** Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
    ** Mercurial Distributed SCM (version 1.6.1023)
    ** Extensions loaded: fixfrozenexts, hgsubversion
    Traceback (most recent call last):
      File "hg", line 36, in <module>
      File "mercurial\dispatch.pyo", line 16, in run
      File "mercurial\dispatch.pyo", line 34, in dispatch
      File "mercurial\dispatch.pyo", line 54, in _runcatch
      File "mercurial\dispatch.pyo", line 483, in _dispatch
      File "mercurial\dispatch.pyo", line 351, in runcommand
      File "mercurial\dispatch.pyo", line 534, in _runcommand
      File "mercurial\dispatch.pyo", line 488, in checkargs
      File "mercurial\dispatch.pyo", line 481, in <lambda>
      File "mercurial\util.pyo", line 420, in check
      File "mercurial\extensions.pyo", line 129, in wrap
      File "mercurial\util.pyo", line 420, in check
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\wrappers.py", line 390, in clone
        update=not opts.get('noupdate'))
      File "mercurial\hg.pyo", line 334, in clone
      File "mercurial\localrepo.pyo", line 1853, in clone
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\svnrepo.py", line 48, in wrapper
        return fn(self, *args, **opts)
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\svnrepo.py", line 63, in pull
        return wrappers.pull(self, remote, heads, force)
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\wrappers.py", line 277, in pull
        close = pullfuns[have_replay](ui, meta, svn, r, tbdelta)
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\replay.py", line 28, in convert_rev
        svn.get_replay(r.revnum, editor)
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\svnwrap\svn_swig_wrapper.py", line 538, in get_replay
        self.init_ra_and_client()
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\svnwrap\svn_swig_wrapper.py", line 275, in init_ra_and_client
        raise SubversionConnectionException(msg)
    hgext_hgsubversion.svnwrap.svn_swig_wrapper.SubversionConnectionException: Failed to open Subversion repository; please try running 'svn ls
    https://anonsvn.springframework.org/svn/spring-ide' for details.
    
  3. iloncar

    Same with https://anonsvn.springframework.org/svn/spring-ide:

    [r2948] cdupuis: IDE-927: project scan now considers configured file extensions; make sure the custom extensions are configured with the XM
    ** unknown exception encountered, details follow
    ** report bug details to http://mercurial.selenic.com/bts/
    ** or mercurial@selenic.com
    ** Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
    ** Mercurial Distributed SCM (version 1.6.1023)
    ** Extensions loaded: fixfrozenexts, hgsubversion
    Traceback (most recent call last):
      File "hg", line 36, in <module>
      File "mercurial\dispatch.pyo", line 16, in run
      File "mercurial\dispatch.pyo", line 34, in dispatch
      File "mercurial\dispatch.pyo", line 54, in _runcatch
      File "mercurial\dispatch.pyo", line 483, in _dispatch
      File "mercurial\dispatch.pyo", line 351, in runcommand
      File "mercurial\dispatch.pyo", line 534, in _runcommand
      File "mercurial\dispatch.pyo", line 488, in checkargs
      File "mercurial\dispatch.pyo", line 481, in <lambda>
      File "mercurial\util.pyo", line 420, in check
      File "mercurial\extensions.pyo", line 129, in wrap
      File "mercurial\util.pyo", line 420, in check
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\wrappers.py", line 390, in clone
        update=not opts.get('noupdate'))
      File "mercurial\hg.pyo", line 334, in clone
      File "mercurial\localrepo.pyo", line 1853, in clone
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\svnrepo.py", line 48, in wrapper
        return fn(self, *args, **opts)
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\svnrepo.py", line 63, in pull
        return wrappers.pull(self, remote, heads, force)
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\wrappers.py", line 277, in pull
        close = pullfuns[have_replay](ui, meta, svn, r, tbdelta)
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\replay.py", line 28, in convert_rev
        svn.get_replay(r.revnum, editor)
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\svnwrap\svn_swig_wrapper.py", line 538, in get_replay
        self.init_ra_and_client()
      File "C:\iloncar\hg-repos\hgsubversion\hgsubversion\svnwrap\svn_swig_wrapper.py", line 275, in init_ra_and_client
        raise SubversionConnectionException(msg)
    hgext_hgsubversion.svnwrap.svn_swig_wrapper.SubversionConnectionException: Failed to open Subversion repository; please try running 'svn ls
    https://anonsvn.springframework.org/svn/spring-ide' for details.
    
  4. Yonggang Luo
    PS D:\CI\bld\llvm.hg> hg clone http://scons-addons.googlecode.com/svn scons-addons
    ('Try add branch with ', 'trunk', 'trunk:1', 'trunk:0', False)
    [r1] None: New repository initialized by cvs2svn.
    ('Try add branch with ', 'trunk/scons-addons', 'trunk:2', 'trunk:0', True)
    ('Add branch or tag with', ['tag name:None', 'trunk', 2, 'trunk', 0, 2, True])
    [r2] bscott: Now everything is in the AutoDist module rather than the package.
    [r3] bscott: Removed a bad var from Package.
    [r4] bscott: Installation of headers now works.
    [r5] bscott: - Install headers to an (optional) prefix.
    [r6] bscott: Commented the hell out of this module.
    [r7] bscott: Beginning work on a SourceTarGZBuilder.
    [r8] bscott: SourceTarGzBuilder seems to work now except in parallel builds ...
    [r9] bscott: Don't cd to the temp directory anymore when building the tarball f
    [r10] bscott: Make the SourceTarGzBuilder work on Irix.
    [r11] bscott: Split the Library type into StaticLibrary and SharedLibrary for e
    [r12] bscott: Standardize on interCaps style for the methods on objects.
    [r13] bscott: Added an Distutils installer.
    [r14] bscott: Moved the specification of the environment from the package level
    [r15] bscott: Use File() on the assembly name so that it gets built in the righ
    [r16] bscott: Fixed bug whereby the usage of File(..) passed as the name of a t
    [r17] bscott: Copy files with directories in their names correctly.
    [r18] bscott: Noted recent bug fixes.
    [r19] bscott: Get things working with Python 1.5
    [r20] bscott: Made this work with python 1.5.
    [r21] bscott: Fixed bug in the creation of the names of Programs when they are
    [r22] bscott: Support/require the use of SCons 0.11
    [r23] bscott: Package.addExtraDist will now recursively add files in directorie
    [r24] bscott: Work with SCons 0.14.
    [r25] bscott: Fix for when the files passed to addExtraDist are File objects.
    [r26] allenb: Initial revision
    ('Add branch or tag with', ['tag name:None', 'branches/REALITYFORGE', 27, 'trunk', 26, 27, True])
    [r27] None: This commit was manufactured by cvs2svn to create branch 'REALITYFO
    [r29] allenb: Added short description
    [r30] allenb: Updated
    [r31] allenb: Add http
    [r32] allenb: Original imports.
    
    
    
    [r404] patrick: Correct Flagpoll configure test so that, if it fails, Configure
    [r405] patrick: Updated for Mac OS X Snow Leopard where the default architectur
    [r406] patrick: Exit with failure if the Flagpoll validation does not pass.
    [r407] patrick.hartling: Add the target architecture type as a unique command l
    [r408] patrick.hartling: Removed trailing whitespace and redundant debug output
    [r409] patrick.hartling: Prefer the use of env['MSVC_VERSION'] over the depreca
    [r410] patrick.hartling: Allow disabling inline optimization through environmen
    [r411] patrick.hartling: Formatting clean-up work:
    [r412] patrick.hartling: Removed trailing whitespace. No functional changes.
    [r413] patrick.hartling: Improve the logic associated with making release build
    [r414] patrick.hartling@gmail.com: Correct how the MSVC optimization function w
    [r415] patrick.hartling@gmail.com: Teach the wxWidgets options about Mac OS X f
    pulled 412 revisions
    updating to branch default
    44 files updated, 0 files merged, 0 files removed, 0 files unresolved
    
  5. Anonymous

    I was able to pull Selenium (trunk) from Google Code with Yonggang Luo's links on Linux.

    Installed subvertpy, set HGSUBVERSION_BINDINGS="SUBVERTPY" (from http://mercurial.808500.n3.nabble.com/Install-subvertpy-bindings-for-hgsubversion-td3185911.html), and finally pulled the 16,900-commit revision.

    Since this is not an issue with this repository, but a big issue for its users, can we add this to the wiki (http://mercurial.selenic.com/wiki/HgSubversion) and (https://bitbucket.org/durin42/hgsubversion/wiki/Home)?

  6. Log in to comment