Problems with hg convert
dhruva
dhruvakm at gmail.com
Wed Dec 5 01:36:56 UTC 2007
Could it be due to not specifying the source repo type as in 'hg -s
svn ....' be the reason? I have not tried myself with mapfile though!
-dky
On 12/5/07, Ken Cavanaugh <Ken.Cavanaugh at sun.com> wrote:
> I am trying to use hg convert (from hg 0.9.5) on a subversion repository.
> I am running on 64-bit Ubuntu 6.10 on an AMD Athlon 64 X2 CPU.
> I installed subversion 1.4.5 (after a lot of fighting with -fpic vs.
> -fPIC for 64 bit x86
> code), and I also installed swig-py from the same subversion build.
> I also made sure that the svn python files from
> /usr/local/lib/svn-python/svn where
> installed in /usr/lib/python2.4/site-packages/svn, as I am currently
> using python 2.4
> from the Ubuntu installation.
>
> I have a copy of the GlassFish repository in subversion, and I am trying
> to run convert
> as follows:
>
> hg convert --filemap mapfile /big/work/svn appserv-core
>
> where mapfile contains:
>
> include appserv-core
> include appserv-core-ee
>
> (Like others have complained, I really don't know exactly how to specify
> the paths.
> /big/work/svn is a local copy of the svn database, so it does not have a
> working copy,
> hence there are no actually files present).
>
> I get the following python traceback:
>
> convert: couldn't open CVS repo /big/work/svn
> convert: couldn't open GIT repo /big/work/svn
> ** unknown exception encountered, details follow
> ** report bug details to http://www.selenic.com/mercurial/bts
> ** or mercurial at selenic.com
> ** Mercurial Distributed SCM (version 0.9.5)
> Traceback (most recent call last):
> File "/usr/local/bin/hg", line 14, in ?
> mercurial.dispatch.run()
> File "/usr/local/lib/python2.4/site-packages/mercurial/dispatch.py",
> line 20, in run
> sys.exit(dispatch(sys.argv[1:]))
> File "/usr/local/lib/python2.4/site-packages/mercurial/dispatch.py",
> line 29, in dispatch
> return _runcatch(u, args)
> File "/usr/local/lib/python2.4/site-packages/mercurial/dispatch.py",
> line 45, in _runcatch return _dispatch(ui, args)
> File "/usr/local/lib/python2.4/site-packages/mercurial/dispatch.py",
> line 349, in _dispatch
> ret = _runcommand(ui, options, cmd, d)
> File "/usr/local/lib/python2.4/site-packages/mercurial/dispatch.py",
> line 402, in _runcommand
> return checkargs()
> File "/usr/local/lib/python2.4/site-packages/mercurial/dispatch.py",
> line 358, in checkargs
> return cmdfunc()
> File "/usr/local/lib/python2.4/site-packages/mercurial/dispatch.py",
> line 343, in <lambda> d = lambda: func(ui, *args, **cmdoptions)
> File
> "/usr/local/lib/python2.4/site-packages/hgext/convert/__init__.py", line
> 362, in convert
> opts.get('rev'))
> File
> "/usr/local/lib/python2.4/site-packages/hgext/convert/__init__.py", line
> 38, in convertsource
> return source(ui, path, rev)
> File
> "/usr/local/lib/python2.4/site-packages/hgext/convert/subversion.py",
> line 120, in __init__
> self.url = geturl(url)
> File
> "/usr/local/lib/python2.4/site-packages/hgext/convert/subversion.py",
> line 45, in geturl
> return svn.client.url_from_path(svn.core.svn_path_canonicalize(path))
> AttributeError: 'module' object has no attribute 'svn_path_canonicalize'
>
> It seems to have recognized that /big/work/svn is a subversion
> repository, but
> there is no svn_path_canonicalize method anywhere. How do I fix this
> problem?
>
> Thanks,
>
> Ken Cavanaugh
> Sun Microsystems
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
--
Sent from Gmail for mobile | mobile.google.com
Contents reflect my personal views only!
More information about the Mercurial
mailing list