bzr crashed with InvalidCommand in abort(): line 982657: Invalid command ' lead_in'

Bug #813452 reported by James Gregory-Monk
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-fastimport (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I am trying to do a fast-import into Bazaar from a Git repository. I've already done a fast-export (both directly from Git and via the fast-export-from-git command in Bazaar) to get the .fi file. However, if I try to either extract the info or import the repository, Bazaar fails with the above error.

It would appear that the fast-import command is attempting to evaluate the 'lead_in' command used to initialise a rspec blueprint. The offending line (with some context) is as follows:

982655 M 100644 :7134 spec/blueprints/documents/sjt_document_blueprint.rb
982656 M 100644 :7135 spec/blueprints/sjt_blueprint.rb
982657 lead_in
982658 scenario
982659 answers { Sham.answers_object }

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: bzr 2.3.1-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic x86_64
Architecture: amd64
BzrDebugFlags: set()
BzrVersion: 2.3.1
CommandLine: ['/usr/bin/bzr', 'fast-import-info', 'umap-exported.fi']
CrashDb: bzr
Date: Wed Jul 20 12:34:46 2011
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
InterpreterPath: /usr/bin/python2.7
Locale: en_GB.UTF-8
PackageArchitecture: all
Platform: Linux-2.6.38-10-generic-x86_64-with-Ubuntu-11.04-natty
ProcCmdline: /usr/bin/python /usr/bin/bzr fast-import-info umap-exported.fi
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 LANGUAGE=en_GB:en
PythonVersion: 2.7.1
SourcePackage: bzr
Title: bzr crashed with InvalidCommand in abort(): line 982657: Invalid command ' lead_in'
UpgradeStatus: No upgrade log present (probably fresh install)
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare

Revision history for this message
James Gregory-Monk (jamgregory) wrote :
visibility: private → public
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This looks like a broken fastimport stream to me. Does "git fast-import" import it correctly?

affects: bzr (Ubuntu) → bzr-fastimport (Ubuntu)
Changed in bzr-fastimport (Ubuntu):
status: New → Incomplete
Revision history for this message
James Gregory-Monk (jamgregory) wrote :

Hi Jelmer,

Ah, git fast-import also fails with the same thing:
fatal: Unsupported command: lead_in

My question then is, why is Git exporting a stream that is broken?

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 813452] Re: bzr crashed with InvalidCommand in abort(): line 982657: Invalid command ' lead_in'

On Wed, 2011-07-20 at 12:55 +0000, James Gregory wrote:
> Ah, git fast-import also fails with the same thing:
> fatal: Unsupported command: lead_in
>
> My question then is, why is Git exporting a stream that is broken?
I'm afraid I'm not very familiar with git fast-export, so I can't really
help you with that.

If you're looking at importing a Git branch into bazaar you might want
to have a look at bzr-git.

Cheers,

Jelmer

Changed in bzr-fastimport (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
James Gregory-Monk (jamgregory) wrote :

It does appear to be a bug in git fast-export - if I try to export it with --no-data, it exports those lines as well (despite that being blob data, as far as I can tell).

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.