vim code import fails with infinite recursion in get_manifest_and_flags_by_revid in bzr-hg

Bug #738498 reported by Andrew Bennetts
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Hg Plugin
New
Undecided
Unassigned
Launchpad itself
Triaged
Low
Unassigned

Bug Description

See e.g. <http://launchpadlibrarian.net/64243684/vcs-imports-vim-trunk.log>:

"""
2011-02-13 12:30:42 INFO Starting job.
2011-02-13 12:30:42 INFO Getting exising bzr branch from central store.
2011-02-13 12:30:43 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2011-02-13 12:30:43 INFO 35 bytes transferred
2011-02-13 12:30:46 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2011-02-13 12:30:47 INFO Importing foreign branch.
2011-02-13 12:30:49 INFO fetching changesets 0
2011-02-13 12:30:50 INFO
2011-02-13 12:30:50 INFO updating cache 0/2695
2011-02-13 12:31:03 INFO
Traceback (most recent call last):
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/scripts/code-import-worker.py", line 82, in <module>
    sys.exit(script.main())
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/scripts/code-import-worker.py", line 77, in main
    return import_worker.run()
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/lib/lp/codehosting/codeimport/worker.py", line 452, in run
    return self._doImport()
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/lib/lp/codehosting/codeimport/worker.py", line 590, in _doImport
    overwrite=True, **self.getExtraPullArgs())
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/branch.py", line 279, in pull
    inter.fetch(revision_id=stop_revision)
  File "<string>", line 4, in fetch_write_locked
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/fetch.py", line 651, in fetch
    self.addchangegroup(cg, mapping)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/fetch.py", line 517, in addchangegroup
    self._target_overlay.remember_manifest_texts(self._unpack_manifests(manifestchunks, mapping, filetext_map, todo, pb))
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/overlay.py", line 125, in remember_manifest_texts
    ((FulltextContentFactory((revid,), [(p,) for p in parent_revids] , None, text) for (revid, parent_revids, text) in entries)))
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/eggs/bzr-2.2.2_lp_2-py2.6-linux-x86_64.egg/bzrlib/knit.py", line 1600, in insert_record_stream
    for record in stream:
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/overlay.py", line 125, in <genexpr>
    ((FulltextContentFactory((revid,), [(p,) for p in parent_revids] , None, text) for (revid, parent_revids, text) in entries)))
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/fetch.py", line 455, in _unpack_manifests
    unpack_chunk_iter(chunkiter, self._target_overlay.get_manifest_text)):
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/parsers.py", line 153, in unpack_chunk_iter
    textbase = lookup_base(base)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/overlay.py", line 200, in get_manifest_text
    return self.get_manifest_text_by_revid(revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/overlay.py", line 215, in get_manifest_text_by_revid
    (manifest, flags) = self.get_manifest_and_flags_by_revid(revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/overlay.py", line 246, in get_manifest_and_flags_by_revid
    return self._reconstruct_manifest_and_flags_by_revid(revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/overlay.py", line 254, in _reconstruct_manifest_and_flags_by_revid
    parent_manifest = self.get_manifest_and_flags_by_revid(p)[0]
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/overlay.py", line 246, in get_manifest_and_flags_by_revid
    return self._reconstruct_manifest_and_flags_by_revid(revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/overlay.py", line 254, in _reconstruct_manifest_and_flags_by_revid
    parent_manifest = self.get_manifest_and_flags_by_revid(p)[0]
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/overlay.py", line 246, in get_manifest_and_flags_by_revid
    return self._reconstruct_manifest_and_flags_by_revid(revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12351/optionalbzrplugins/hg/overlay.py", line 254, in _reconstruct_manifest_and_flags_by_revid
    parent_manifest = self.get_manifest_and_flags_by_revid(p)[0]

"""

William Grant (wgrant)
Changed in launchpad:
importance: Undecided → Low
status: New → Triaged
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.