[issue1656] Convert bzr repo with an exclude filemap specified raises exception

Gary Herron mercurial-bugs at selenic.com
Tue May 12 11:28:24 CDT 2009


New submission from Gary Herron <gherron at digipen.edu>:

Converting a bzr repository with a --filemap containing an exclude
causes a exception

Using the latest version (as of May 12 2009) of convert:
  http://hg.intevation.org/mercurial/crew-stable/rev/13b36eb14324
and the latest mercurial on Ubuntu (version 1.1.2).

Here's a small command line sequence that produces a bzr repo,
creates a file for --filemap, and converts it.  
The traceback follows.

rm -rf hg-break bzr-break

mkdir bzr-break
cd bzr-break
bzr init
mkdir a
echo a > a/a1
echo a > a/a2
bzr add a a/a1 a/a2
bzr commit -m 'init'

cd ..
echo exclude a/a1 > fmap
hg convert -d hg -s bzr --filemap fmap bzr-break hg-break

Traceback:
Traceback (most recent call last):
  File "/usr/bin/hg", line 20, in <module>
    mercurial.dispatch.run()
  File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 29, in
dispatch
    return _runcatch(u, args)
  File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 45, in
_runcatch
    return _dispatch(ui, args)
  File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 367, in
_dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 416, in
_runcommand
    return checkargs()
  File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 376, in
checkargs
    return cmdfunc()
  File "/var/lib/python-support/python2.6/mercurial/dispatch.py", line 361, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/var/lib/python-support/python2.6/mercurial/util.py", line 715, in check
    return func(*args, **kwargs)
  File "/var/lib/python-support/python2.6/hgext/convert/__init__.py", line 181,
in convert
    return convcmd.convert(ui, src, dest, revmapfile, **opts)
  File "/var/lib/python-support/python2.6/hgext/convert/convcmd.py", line 338,
in convert
    c.convert()
  File "/var/lib/python-support/python2.6/hgext/convert/convcmd.py", line 280,
in convert
    self.copy(c)
  File "/var/lib/python-support/python2.6/hgext/convert/convcmd.py", line 227,
in copy
    changes = self.source.getchanges(rev)
  File "/var/lib/python-support/python2.6/hgext/convert/filemap.py", line 325,
in getchanges
    changes, copies = self.base.getchanges(rev)
  File "/var/lib/python-support/python2.6/hgext/convert/bzr.py", line 91, in
getchanges
    parentids = self._parentids.pop(version)
KeyError: 'pop(): dictionary is empty'

----------
messages: 9305
nosy: gherron
priority: bug
status: unread
title: Convert bzr repo with an exclude filemap specified raises exception

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



More information about the Mercurial-devel mailing list