[issue802] hg convert fails on any darcs repository

Guy Brand mercurial-bugs at selenic.com
Sat Oct 27 09:15:51 UTC 2007


New submission from Guy Brand <gb at isis.u-strasbg.fr>:

bug ~# hg version -q
Mercurial Distributed SCM (version 3aa5c45874c6+20071026)

Whatever darcs repository I try to convert (w/ or w/o giving the source type of
the repo), it fails with:

bug ~# hg convert arctic
assuming destination arctic-hg
destination arctic-hg is a Mercurial repository
scanning source...
sorting...
converting...
200 Initial report.
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 3aa5c45874c6+20071026)
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 14, in <module>
    mercurial.dispatch.run()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 20,
in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 29,
in dispatch
    return _runcatch(u, args)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 45,
in _runcatch
    return _dispatch(ui, args)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 348,
in _dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 401,
in _runcommand
    return checkargs()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 357,
in checkargs
    return cmdfunc()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line 342,
in <lambda>
    d = lambda: func(ui, *args, **cmdoptions)
  File "/usr/local/lib/python2.5/site-packages/hgext/convert/__init__.py", line
380, in convert
    c.convert()
  File "/usr/local/lib/python2.5/site-packages/hgext/convert/__init__.py", line
270, in convert
    self.copy(c)
  File "/usr/local/lib/python2.5/site-packages/hgext/convert/__init__.py", line
247, in copy
    newnode = self.dest.putcommit(filenames, parents, commit)
  File "/usr/local/lib/python2.5/site-packages/hgext/convert/hg.py", line 132,
in putcommit
    bin(p1), bin(p2), extra=extra)
  File "/usr/local/lib/python2.5/site-packages/mercurial/localrepo.py", line
658, in rawcommit
    p1=p1, p2=p2, extra=extra, empty_ok=True)
TypeError: commit() got an unexpected keyword argument 'empty_ok'

----------
messages: 4201
nosy: gb
priority: bug
status: unread
title: hg convert fails on any darcs repository

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue802>
____________________________________________________




More information about the Mercurial-devel mailing list