InconsistentDelta during fast-import

Bug #514560 reported by Adrien Saladin on 2010-01-29
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar Fast Import

Bug Description


This bug report is from

I pasted the log below. Please tell me if you need an access to the svn repository.

$ bzr fast-import ptools.bzr -Derror
09:06:47 Collecting statistics ...
09:06:47 Starting import of 255 commits ...
ABORT: exception occurred processing commit @211
bzr: ERROR: bzrlib.errors.InconsistentDelta: An inconsistent delta was supplied involving u'/SConstruct', 'sconstruct-20100129080647-cx5239q3luoyvyxb-3'
reason: New path is not consistent with parent path.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 842, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1037, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 654, in run_argv_aliases
  File "/home/adrien/.bazaar/plugins/fastimport/", line 384, in run
    params, verbose, user_map=user_map)
  File "/home/adrien/.bazaar/plugins/fastimport/", line 111, in _run
    return proc.process(p.iter_commands)
  File "/home/adrien/.bazaar/plugins/fastimport/", line 95, in process
  File "/home/adrien/.bazaar/plugins/fastimport/processors/", line 280, in _process
    processor.ImportProcessor._process(self, command_iter)
  File "/home/adrien/.bazaar/plugins/fastimport/", line 117, in _process
    handler(self, cmd)
  File "/home/adrien/.bazaar/plugins/fastimport/processors/", line 490, in commit_handler
  File "/home/adrien/.bazaar/plugins/fastimport/", line 208, in process
  File "/home/adrien/.bazaar/plugins/fastimport/", line 607, in post_process_files
  File "/home/adrien/.bazaar/plugins/fastimport/", line 401, in load_using_delta
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 210, in finish_inventory
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1067, in add_inventory_by_delta
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1193, in apply_delta
    "New path is not consistent with parent path.")
InconsistentDelta: An inconsistent delta was supplied involving u'/SConstruct', 'sconstruct-20100129080647-cx5239q3luoyvyxb-3'
reason: New path is not consistent with parent path.

Jelmer Vernooij (jelmer) on 2010-12-11
summary: - fast-import error
+ InconsistentDelta during fast-import
Jelmer Vernooij (jelmer) wrote :

Can you attach the problematic fastimport file?

Changed in bzr-fastimport:
status: New → Triaged
importance: Undecided → Medium
Martin Pool (mbp) wrote :

There is which sounds like it may address this; it probably need someone else to look at the state of the code and perhaps finish it off. People who are experiencing this bug might like to test it.

Corey Bryant (corey.bryant) wrote :

I'm getting the same error, and it can be recreated with the following:

bzr branch lp:bzr-fastimport ~/.bazaar/plugins/fastimport
sudo apt-get install python-fastimport

git clone github/charm-swift-proxy
mkdir -p bzr/next
cd bzr/next
bzr init
cd -

mkdir tmp
cd github/charm-swift-proxy/
git fast-export master > ../../tmp/
bzr fast-import -v -Derror ../../tmp/ bzr/next/
bzr fast-import -v -Derror ../../tmp/ /tmp/bzr/next/ # this results in the following exception

I'll take a look at the fix above and see how that works out.

Corey Bryant (corey.bryant) wrote :

Here's my traceback, it's slightly different:

Also I attempted running with the code that Martin mentioned above and it didn't help.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers