bzr fast-import crash

Bug #238540 reported by Deepinthekernel
2
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
Invalid
Undecided
Unassigned

Bug Description

ls -l ~/cvs2svn-2.1.1/cvs2svn-tmp/
total 2962516
-rw-rw-r-- 1 markw markw 1001544550 2008-06-05 16:03 bzr-blob.dat
-rw-rw-r-- 1 markw markw 2032059942 2008-06-05 19:43 bzr-dump.dat

These files were generated using the cvs2svn tool with a slightly modified options file. It took several hours to run, which did not seem unreasonable bearing in mind the size of the repository.

Then:

mkdir bzr4
cd bzr4
bzr init
bzr fast-import ~/cvs2svn-2.1.1/cvs2svn-tmp/bzr-blob.dat
 bzr fast-import ~/cvs2svn-2.1.1/cvs2svn-tmp/bzr-blob.dat
13:02:40 Updating branch information ...
bzr: ERROR: exceptions.KeyError: None

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 802, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 504, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/markw/.bazaar/plugins/fastimport/__init__.py", line 166, in run
    params, verbose)
  File "/home/markw/.bazaar/plugins/fastimport/__init__.py", line 50, in _run
    return proc.process(p.iter_commands)
  File "/home/markw/.bazaar/plugins/fastimport/processor.py", line 83, in process
    self._process(command_iter)
  File "/home/markw/.bazaar/plugins/fastimport/processors/generic_processor.py", line 251, in _process
    processor.ImportProcessor._process(self, command_iter)
  File "/home/markw/.bazaar/plugins/fastimport/processor.py", line 109, in _process
    self.post_process()
  File "/home/markw/.bazaar/plugins/fastimport/processors/generic_processor.py", line 267, in post_process
    branches_updated, branches_lost = updater.update()
  File "/home/markw/.bazaar/plugins/fastimport/processors/generic_processor.py", line 907, in update
    branch_tips, lost_heads = self._get_matching_branches()
  File "/home/markw/.bazaar/plugins/fastimport/processors/generic_processor.py", line 928, in _get_matching_branches
    default_tip = self.heads_by_ref[trunk][0]
KeyError: None

bzr 1.4 on python 2.5.1 (linux2)
arguments: ['/usr/bin/bzr', 'fast-import', '/home/markw/cvs2svn-2.1.1/cvs2svn-tmp/bzr-blob.dat']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.4.0]
  cvsps_import /home/markw/.bazaar/plugins/cvsps_import [unknown]
  fastimport /home/markw/.bazaar/plugins/fastimport [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.94.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

This takes about 1 minute to occur.

It says report a bug, so thats what I am doing! Any help, appreciated.

Keywords: cvs2svn cvs2git cvs2bzr

Revision history for this message
Deepinthekernel (mark-winder4) wrote :

It seems as if you do it like this, then there is not an immediate crash:

cat ~/cvs2svn-2.1.1/cvs2svn-tmp/* | bzr fast-import -

Have to see how this pans out... watch this space...

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Can this be closed now? It sounds like bzr-fastimport works ok if given the full stream and not just part of it?

Changed in bzr-fastimport:
status: New → Incomplete
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

It looks like this was a usage error. Please reopen if you think otherwise.

Changed in bzr-fastimport:
status: Incomplete → Invalid
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.