Issue #366 resolved

AttributeError: 'ui' object has no attribute 'configint' when running 'hg clone'

Donal McNamee
created an issue

Mercurial: 1.4

hgsubversion: 957:397af94ce98c

Subversion: 1.6.11

Bindings: Subvertpy 0.7.4

OS: CentOS release 6.3 (Final)

Getting the following error when attempting to run 'hg clone --config hgsubversion.defaulthost=mysite.com file:///workspace/mercurial/svn/product-mirror hg-product'

[r9183] None: Standard project directories initialized by cvs2svn.
 ** unknown exception encountered, details follow
 ** report bug details to http://mercurial.selenic.com/bts/
 ** or mercurial@selenic.com
 ** Mercurial Distributed SCM (version 1.4)
 ** Extensions loaded: hgsubversion
 Traceback (most recent call last):
   File "/usr/bin/hg", line 27, in <module>
     mercurial.dispatch.run()
   File "/usr/lib64/python2.6/site-packages/mercurial/dispatch.py", line 16, in run
     sys.exit(dispatch(sys.argv[1:]))
   File "/usr/lib64/python2.6/site-packages/mercurial/dispatch.py", line 30, in dispatch
     return _runcatch(u, args)
   File "/usr/lib64/python2.6/site-packages/mercurial/dispatch.py", line 46, in _runcatch
     return _dispatch(ui, args)
   File "/usr/lib64/python2.6/site-packages/mercurial/dispatch.py", line 449, in _dispatch
     return runcommand(lui, repo, cmd, fullargs, ui, options, d)
   File "/usr/lib64/python2.6/site-packages/mercurial/dispatch.py", line 319, in runcommand
     ret = _runcommand(ui, options, cmd, d)
   File "/usr/lib64/python2.6/site-packages/mercurial/dispatch.py", line 500, in _runcommand
     return checkargs()
   File "/usr/lib64/python2.6/site-packages/mercurial/dispatch.py", line 454, in checkargs
     return cmdfunc()
   File "/usr/lib64/python2.6/site-packages/mercurial/dispatch.py", line 448, in <lambda>
     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
   File "/usr/lib64/python2.6/site-packages/mercurial/util.py", line 386, in check
     return func(*args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/mercurial/extensions.py", line 116, in wrap
     util.checksignature(origfn), *args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/mercurial/util.py", line 386, in check
     return func(*args, **kwargs)
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/wrappers.py", line 562, in clone
     orig(ui, source, dest, **opts)
   File "/usr/lib64/python2.6/site-packages/mercurial/util.py", line 386, in      check
     return func(*args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/mercurial/commands.py", line 649, in clone
     update=opts.get('updaterev') or not opts.get('noupdate'))
   File "/usr/lib64/python2.6/site-packages/mercurial/extensions.py", line 128, in wrap
     return wrapper(origfn, *args, **kwargs)
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/wrappers.py", line 551, in hgclonewrapper
     data['srcrepo'], data['dstrepo'] = orig(ui, *args, **opts)
   File "/usr/lib64/python2.6/site-packages/mercurial/hg.py", line 292, in clone
dest_repo.clone(src_repo, heads=revs, stream=stream)
   File "/usr/lib64/python2.6/site-packages/mercurial/localrepo.py", line 2144, in clone
     return self.pull(remote, heads)
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/svnrepo.py", line 81, in wrapper
     return fn(self, *args, **opts)
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/svnrepo.py", line 104, in pull
     return wrappers.pull(self, remote, heads, force)
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/wrappers.py", line 419, in pull
firstrun)
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/replay.py", line 68, in convert_rev
     meta.editor.current.close()
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/svnmeta.py", line 122, in editor
     self._editor = editor.HgEditor(self)
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/editor.py", line 227, in __init__
     self.current = RevisionData(meta.ui)
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/editor.py", line 99, in __init__
     self.clear()
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/editor.py", line 102, in clear
     self.store = FileStore(util.getfilestoresize(self.ui))
   File "/net/nasdub/vol/eng/fwbuilds2/dmcnamee/hgsubversion/hgsubversion/util.py", line 342, in getfilestoresize
     size = ui.configint('hgsubversion', 'filestoresize', 200)
 AttributeError: 'ui' object has no attribute 'configint'

Running the 'nosetests' on the extension gives the same error.

Comments (4)

  1. Log in to comment