Inconsistent delta when fast-import'ing from git

Asked by James Gregory-Monk

I've used git-fast-export to create a stream that I now want to import into bzr. However, I try to import it, I get the following error message:

ABORT: exception occurred processing commit :254
bzr: ERROR: An inconsistent delta was supplied involving '<unknown>', 'cruiserb-20110805105528-o85iuud1wwo2sqfe-202'
reason: Parent is not present in resulting inventory.

Can anyone advise as to what the problem is, or how I can rectify this problem?

Question information

Language:
English Edit question
Status:
Open
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :
#1

Hi, James,

I guess this is bug 514560 which is still open. You could try running bzr-fastimport from <https://code.launchpad.net/~ian-clatworthy/bzr-fastimport/inconsistent-delta-fixes> and let us know if that fixes it.

Revision history for this message
James Gregory-Monk (jamgregory) said :
#2

Hi Martin,

Apologies for the late reply - I'll try that branch now and see if it fixes my problem.

Revision history for this message
James Gregory-Monk (jamgregory) said :
#3

Hi Martin,

I've checked out that branch, but when I try to 'selftest' the plugin, I keep getting the following error:

bzr: ERROR: No module named configobj
You may need to install this Python library separately.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#4

Hi James,

On 08/15/2011 11:35 AM, James Gregory wrote:
> Question #167033 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/167033
>
> James Gregory posted a new comment:
> Hi Martin,
>
> I've checked out that branch, but when I try to 'selftest' the plugin, I
> keep getting the following error:
>
> bzr: ERROR: No module named configobj
> You may need to install this Python library separately.
What platform are you running bzr on? If it's Debian or Ubuntu you might
have to install python-configobj (which the bzr package depends on).

Cheers,

Jelmer

Revision history for this message
James Gregory-Monk (jamgregory) said :
#5

Hi Jelmer,

I'm running it on Ubuntu. It actually turns out that branch is quite old, and only imports configobj from the bzrlib. It turns out newer versions try this, then fall back to native configobj if it isn't available. When I added this code in, the library started working.

Unfortunately, it seems this version still throws the same 'inconsistent delta' problem I was seeing with the packaged version.

Revision history for this message
John A Meinel (jameinel) said :
#6

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/15/2011 11:35 AM, James Gregory wrote:
> Question #167033 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/167033
>
> James Gregory posted a new comment: Hi Martin,
>
> I've checked out that branch, but when I try to 'selftest' the
> plugin, I keep getting the following error:
>
> bzr: ERROR: No module named configobj You may need to install this
> Python library separately.
>

If you're running on debian/Ubuntu, you can "apt-get install
python-configobj". On Windows, we should be bundling configobj with the
bzrlib source, but debian pulled that out to use the system configobj.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5I6mgACgkQJdeBCYSNAAOaRACgqjXDnp4bmATyLaJANaDdG4P8
nXMAoMOVmiyiBUxKOR1geqF/Hcsy4VUT
=/yeX
-----END PGP SIGNATURE-----

Revision history for this message
Jelmer Vernooij (jelmer) said :
#7

On 08/15/2011 11:50 AM, James Gregory wrote:
> Question #167033 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/167033
>
> James Gregory posted a new comment:
> Hi Jelmer,
>
> I'm running it on Ubuntu. It actually turns out that branch is quite
> old, and only imports configobj from the bzrlib. It turns out newer
> versions try this, then fall back to native configobj if it isn't
> available. When I added this code in, the library started working.
>
> Unfortunately, it seems this version still throws the same 'inconsistent
> delta' problem I was seeing with the packaged version.
>
:-( Another thing you could try is to use the "bzr git-import" command
from the bzr-git plugin for the import.

Cheers,

Jelmer

Revision history for this message
James Gregory-Monk (jamgregory) said :
#8

Hi Jelmer,

I've just tried this, but unfortunately it suffers from the same bug Git does where oddly named filenames break the exporter/importer!

bzr: ERROR: The key 'spec/blueprints/sjt__blueprint.rb
_s_slead__in
_s_sscenario
_s_sanswers_s_s_s_s_s{_sSham.answers__object_s}
_s_sjustification__selected
_s_sjustification__unselected
_s_smark__scheme_s{_sSham.single__mark__scheme__object_s}
end
mcq__blueprint.rb' is not a valid key.

Revision history for this message
James Gregory-Monk (jamgregory) said :
#9

I've filed a bug against bzr-git to try and ascertain if this problem can be fixed.

Can you help with this problem?

Provide an answer of your own, or ask James Gregory-Monk for more information if necessary.

To post a message you must log in.