hg clone - strange error

Issue #100 resolved
Andrew Kouznetsov
created an issue

I have cloned hgsubversion into /root/hgsubversion and saw strange error: {{{

[root@w00d /var/mercurial]# cat ~/.hgrc [extensions] hgext.hgsubversion=/root/hgsubversion/hgsubversion [root@w00d /var/mercurial]# hg init test [root@w00d /var/mercurial]# hg clone test test1 unknown exception encountered, details follow report bug details to http://www.selenic.com/mercurial/bts or mercurial@selenic.com Mercurial Distributed SCM (version 1.2.1) Extensions loaded: hgsubversion Traceback (most recent call last): File "/usr/local/bin/hg", line 27, in <module> mercurial.dispatch.run() File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 16, in run sys.exit(dispatch(sys.argv[1:])) File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 25, in dispatch return _runcatch(u, args) File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 41, in _runcatch return _dispatch(ui, args) File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 372, in _dispatch return runcommand(lui, repo, cmd, fullargs, ui, options, d) File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 247, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 417, in _runcommand return checkargs() File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 377, in checkargs return cmdfunc() File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 371, in <lambda> d = lambda: util.checksignature(func)(ui, *args, cmdoptions) File "/usr/local/lib/python2.5/site-packages/mercurial/util.py", line 718, in check return func(args, kwargs) File "/usr/local/lib/python2.5/site-packages/mercurial/extensions.py", line 100, in wrap util.checksignature(origfn), *args, kwargs) File "/usr/local/lib/python2.5/site-packages/mercurial/util.py", line 718, in check return func(args, **kwargs) File "/root/hgsubversion/hgsubversion/wrappers.py", line 377, in clone srcrepo, dstrepo = hg.clone(cmdutil.remoteui(ui, opts), source, dest, File "/usr/local/lib/python2.5/site-packages/mercurial/demandimport.py", line 76, in getattribute return getattr(self._module, attr) AttributeError: 'module' object has no attribute 'remoteui'

}}}

Comments (11)

  1. Anonymous

    I have encountered the same issue and I am using the most recent SVN available through TortoiseSVN. This seems to meet the minimum version as currently stated in the README.

    C:\workspace>hg clone http://python-nose.googlecode.com/svn nose-hg
    ** 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, wincolor, extdiff, mq, record, convert, rebase, bfiles, parentrevspec, hgsubversion, color
    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\extensions.pyo", line 174, in wrap
      File "hgext\color.pyo", line 213, in colorcmd
      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:\Dev\tools\hg\hgsubversion\hgsubversion\wrappers.py", line 386, in clone
        srcrepo, dstrepo = hg.clone(cmdutil.remoteui(ui, opts), source, dest,
    AttributeError: 'module' object has no attribute 'remoteui'
    
    C:\workspace>hg --version
    Mercurial Distributed SCM (version 1.6.1023)
    
    Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    
    
  2. masklinn

    Happens to me with hg 1.6 and hgsubversion 1.1.0 (from macports both):

    ** unknown exception encountered, details follow
    ** report bug details to http://mercurial.selenic.com/bts/
    ** or mercurial@selenic.com
    ** Python 2.6.5 (r265:79063, Jul 12 2010, 20:21:19) [GCC 4.2.1 (Apple Inc. build 5664)]
    ** Mercurial Distributed SCM (version 1.6)
    ** Extensions loaded: bisect, bookmarks, children, churn, color, convert, extdiff, fetch, gpg, graphlog, hgk, hgsubversion, mq, patchbomb, purge, rebase, record, transplant, attic, histedit
    Traceback (most recent call last):
      File "/opt/local/bin/hg", line 27, in <module>
        mercurial.dispatch.run()
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 16, in run
        sys.exit(dispatch(sys.argv[1:]))
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 34, in dispatch
        return _runcatch(u, args)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 54, in _runcatch
        return _dispatch(ui, args)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 483, in _dispatch
        cmdpats, cmdoptions)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 351, in runcommand
        ret = _runcommand(ui, options, cmd, d)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/extensions.py", line 160, in wrap
        return wrapper(origfn, *args, **kwargs)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hgext/color.py", line 213, in colorcmd
        return orig(ui_, opts, cmd, cmdfunc)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 534, in _runcommand
        return checkargs()
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 488, in checkargs
        return cmdfunc()
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 481, in <lambda>
        d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/util.py", line 420, in check
        return func(*args, **kwargs)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/extensions.py", line 116, in wrap
        util.checksignature(origfn), *args, **kwargs)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/util.py", line 420, in check
        return func(*args, **kwargs)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hgsubversion/wrappers.py", line 401, in clone
        srcrepo, dstrepo = hg.clone(cmdutil.remoteui(ui, opts), source, dest,
    AttributeError: 'module' object has no attribute 'remoteui'
    
  3. Anonymous

    I've used latest hgsubversion from the repo with the latest tortoisehg 1.1.2 (based on hg 1.6) - and had the same problem again :(

  4. Anonymous

    But the same hgsubversion revision with the tortoisehg 1.0.4 (based on hg 1.5.4) doesn't have this issue.

  5. Shun-ichi Goto

    I can't reproduce with TortoiseHg 1.1.2 and latest hgsubversion (655:dcac6dc1abe6) Please check your configuration to know where hgsubveresion is loaded. Here's my case:

    [c:\temp] hg showconfig extensions
    extensions.hgsubversion=c:/develop/hg/hgsubversion/hgsubversion
    

    If loaded path is what you want, then check hgsubversion/hgsubversion/wrapper.py line 401. The latest code should have `util.remoteui(...)` like this

        srcrepo, dstrepo = hg.clone(util.remoteui(ui, opts), source, dest,
    
  6. Anonymous

    Sorry, it looks like I've had old hgsubversion revision (5xx or something like that). I'll test the same configuration with the r662, but I'm almost sure that it was my mistake. Thanks for your help.

  7. Log in to comment