exceptions.KeyError when pulling from a local hg repo

Bug #486029 reported by Mark Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Hg Plugin
Triaged
High
Unassigned

Bug Description

Steps to reproduce:

~$ hg init test
~$ cd test
~/test$ touch foo
~/test$ hg commit -m "Add foo"
~/test$ bzr branch . ../test-bzr
~/test$ echo something > foo
~/test$ hg commit -m "Add something to foo"
~/test$ cd ../test-bzr
~/test-bzr$ bzr pull
Using saved parent location: /home/malept/test/
bzr: ERROR: exceptions.KeyError: ('hg:foo', 'hg-v1:29aff5a0a700431b8d617ca82e83c283e914a3db')

OS: Ubuntu Jaunty
bzr: 2.0.2 (from the bzr PPA)
bzr-hg: 0.2.0dev (lp:bzr-hg, revision 265)

BzrPlugins:
   avahi /usr/lib/python2.6/dist-packages/bzrlib/plugins/avahi [0.3.0dev]
   bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.0.0]
   dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [unknown]
   git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.4.1]
   gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.97.0.final]
   hg /home/malept/.bazaar/plugins/hg [0.2.0dev]
   launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.0.2]
   netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.0.2]
   pager /home/malept/.bazaar/plugins/pager [unknown]
   rebase /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase [0.5.4]
   search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7.0dev]
   svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.0]
   textchecker /home/malept/.bazaar/plugins/textchecker [0.3.0dev1]
PythonVersion: 2.6.2
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 842, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654, in run_argv_aliases
     return self.run(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1017, in run
     possible_transports=possible_transports, local=local)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 1611, in pull
     local=local)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 948, in pull
     possible_transports=possible_transports, *args, **kwargs)
   File "/home/malept/.bazaar/plugins/hg/branch.py", line 258, in pull
     inter.fetch(revision_id=stop_revision)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/home/malept/.bazaar/plugins/hg/fetch.py", line 642, in fetch
     self.addchangegroup(cg, mapping)
   File "/home/malept/.bazaar/plugins/hg/fetch.py", line 521, in addchangegroup
     self._add_inventories(todo, mapping, pb)
   File "/home/malept/.bazaar/plugins/hg/fetch.py", line 379, in _add_inventories
     manifest, flags, files, rev, mapping)
   File "/home/malept/.bazaar/plugins/hg/fetch.py", line 333, in _import_manifest_delta
     self._symlink_targets.__getitem__))
   File "/home/malept/.bazaar/plugins/hg/fetch.py", line 203, in manifest_to_inventory_delta
     (fileid, ie.revision))
 KeyError: ('hg:foo', 'hg-v1:29aff5a0a700431b8d617ca82e83c283e914a3db')

Jelmer Vernooij (jelmer)
Changed in bzr-hg:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in bzr-hg:
assignee: Jelmer Vernooij (jelmer) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.