ensure base was bzr-git generated when applying deltas
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Bazaar Git Plugin | Triaged | Medium | Unassigned | ||
Bug Description
I tried to clone a remote git repository into a branch inside a sharewd bzr repo. This crashed with the following error message:
bzr: ERROR: An inconsistent delta was supplied involving '<unknown>', 'intl' reason: Parent is not present in resulting inventory.
I then retried from the same git repository, but outside the shared repo. This time, it got farther, but still crashed:
bzr: ERROR: The repository you are fetching from contains submodules. To continue, upgrade your Bazaar repository to a format that supports nested trees, such as 'development-
This message I at least understand. So does it mean bzr-git cannot be used to create branches inside share bzr repositories? Or is it a bug?
| Jelmer Vernooij (jelmer) wrote : Re: [Bug 733883] [NEW] "bzr branch" from a git repo crashes in a shared bzr repository | #1 |
| Changed in bzr-git: | |
| status: | New → Incomplete |
| Eli Zaretskii (eliz) wrote : Re: "bzr branch" from a git repo crashes in a shared bzr repository | #2 |
Sorry, forgot to mention the versions. They are the latest ones I could find: bzr-git 0.5.4 and dulwich 0.7.0.
The version of Bazaar is 2.3.0, installed with a stand-alone installer on Windows XP SP2.
"bzr check" reports nothing special, see below. Is there a point in running reconcile, given this?
Checking working tree at 'D:/gnu/
Checking branch at 'file:/
Checking working tree at 'D:/gnu/
Checking branch at 'file:/
Checking working tree at 'D:/gnu/
Checking branch at 'file:/
Checking working tree at 'D:/gnu/
Checking branch at 'file:/
Checking repository at 'file:/
checked repository file://
438 revisions
1361 file-ids
checked branch file://
checked branch file://
checked branch file://
checked branch file://
| Jelmer Vernooij (jelmer) wrote : Re: [Bug 733883] Re: "bzr branch" from a git repo crashes in a shared bzr repository | #3 |
On Sat, 2011-03-12 at 16:40 +0000, Eli Zaretskii wrote:
> Sorry, forgot to mention the versions. They are the latest ones I could find: bzr-git 0.5.4 and dulwich 0.7.0.
> The version of Bazaar is 2.3.0, installed with a stand-alone installer on Windows XP SP2.
>
> "bzr check" reports nothing special, see below. Is there a point in
> running reconcile, given this?
Can you run bzr git-import again with "BZR_PDB=1" set? that should land
you in a debugger. If you can paste the backtrace from that exception
("bt" in the debugger) here that would be useful.
Cheers,
Jelmer
| Eli Zaretskii (eliz) wrote : Re: "bzr branch" from a git repo crashes in a shared bzr repository | #4 |
Here's what "bt" in the debugger shows:
bzr: ERROR: An inconsistent delta was supplied involving '<unknown>', 'intl'
reason: Parent is not present in resulting inventory.
**** entering debugger
> d:\gnu\
(Pdb) bt
d:\usr\
)
d:\usr\
d:\usr\
d:\usr\
d:\gnu\
d:\gnu\
d:\usr\
d:\usr\
d:\usr\
d:\usr\
d:\usr\
d:\gnu\
delta()
> d:\gnu\
(Pdb)
| Eli Zaretskii (eliz) wrote : | #5 |
Sorry, that was with "git-import". Here's the traceback from "bzr branch":
bzr: ERROR: An inconsistent delta was supplied involving '<unknown>', 'intl'
reason: Parent is not present in resulting inventory.
**** entering debugger
> d:\gnu\
(Pdb) bt
d:\usr\
d:\usr\
d:\usr\
d:\usr\
d:\gnu\
d:\gnu\
d:\gnu\
d:\gnu\
d:\gnu\
d:\gnu\
d:\gnu\
d:\gnu\
d:\usr\
d:\usr\
d:\usr\
d:\usr\
d:\gnu\
> d:\gnu\
(Pdb)
| Jelmer Vernooij (jelmer) wrote : Re: [Bug 733883] Re: "bzr branch" from a git repo crashes in a shared bzr repository | #6 |
On Sat, 2011-03-12 at 19:31 +0000, Eli Zaretskii wrote:
> Sorry, that was with "git-import". Here's the traceback from "bzr
> branch":
>
> bzr: ERROR: An inconsistent delta was supplied involving '<unknown>', 'intl'
> reason: Parent is not present in resulting inventory.
> **** entering debugger
> > d:\gnu\
> (Pdb) bt
> d:\usr\
> d:\usr\
> d:\usr\
> d:\usr\
> d:\gnu\
> d:\gnu\
> d:\gnu\
> d:\gnu\
> d:\gnu\
> d:\gnu\
> d:\gnu\
> d:\gnu\
> d:\usr\
> d:\usr\
> d:\usr\
> d:\usr\
> d:\gnu\
> > d:\gnu\
> (Pdb)
Hmm, looks like it's creating a delta against an existing revision in
that repository. Did you use earlier versions of bzr-git with this
repository perchance?
Cheers,
Jelmer
| Eli Zaretskii (eliz) wrote : Re: "bzr branch" from a git repo crashes in a shared bzr repository | #7 |
I don't think I ever used bzr-git in that repository. However, one of the branches in the repository was created by "bzr fast-import" using a stream exported from the same git repository. (The export was done on another machine, and the resulting .fi file was copied to this machine and used to create a branch in this repository.)
Could this be the source of the problem?
| Jelmer Vernooij (jelmer) wrote : Re: [Bug 733883] Re: "bzr branch" from a git repo crashes in a shared bzr repository | #8 |
On Sat, 2011-03-12 at 20:21 +0000, Eli Zaretskii wrote:
> I don't think I ever used bzr-git in that repository. However, one of
> the branches in the repository was created by "bzr fast-import" using a
> stream exported from the same git repository. (The export was done on
> another machine, and the resulting .fi file was copied to this machine
> and used to create a branch in this repository.)
>
> Could this be the source of the problem?
Maybe. There is clearly a buggy revision here. Can you print the
problematic revision with "print new_revision_id" and the current
revision with "print self.revision_id" in the pdb prompt?
Cheers,
Jelmer
| Eli Zaretskii (eliz) wrote : Re: "bzr branch" from a git repo crashes in a shared bzr repository | #9 |
Here:
(Pdb) print new_revision_id
git-v1:
(Pdb) print self.revision_id
<email address hidden>
(Pdb)
| Jelmer Vernooij (jelmer) wrote : Re: [Bug 733883] Re: "bzr branch" from a git repo crashes in a shared bzr repository | #10 |
On Sat, 2011-03-12 at 22:49 +0000, Eli Zaretskii wrote:
> Here:
>
> (Pdb) print new_revision_id
> git-v1:
> (Pdb) print self.revision_id
> <email address hidden>
> (Pdb)
Euhm, WTF?
Does "bzr git-objects 802eb1d3b0f1899
that repository ?
Cheers,
Jelmer
| Eli Zaretskii (eliz) wrote : Re: "bzr branch" from a git repo crashes in a shared bzr repository | #11 |
Seems so:
D:\gnu\
tree ca8cc72963b395e
parent 9432121c2ddc629
author Jim Meyering <email address hidden> 826693640 +0000
committer Jim Meyering <email address hidden> 826693640 +0000
.
| Jelmer Vernooij (jelmer) wrote : Re: [Bug 733883] Re: "bzr branch" from a git repo crashes in a shared bzr repository | #12 |
On Sun, 2011-03-13 at 04:02 +0000, Eli Zaretskii wrote:
> Seems so:
>
> D:\gnu\
> tree ca8cc72963b395e
> parent 9432121c2ddc629
> author Jim Meyering <email address hidden> 826693640 +0000
> committer Jim Meyering <email address hidden> 826693640 +0000
summary "ensure base was bzr-git generated when applying deltas"
status triaged
importance medium
This looks like it is indeed a clash between the revisions generated by
bzr-git and bzr-fastimport.
Cheers,
Jelmer
| summary: | - "bzr branch" from a git repo crashes in a shared bzr repository + ensure base was bzr-git generated when applying deltas |
| Changed in bzr-git: | |
| importance: | Undecided → Medium |
| status: | Incomplete → Triaged |
On Sat, 2011-03-12 at 15:59 +0000, Eli Zaretskii wrote:
> Public bug reported:
>
> I tried to clone a remote git repository into a branch inside a sharewd
> bzr repo. This crashed with the following error message:
>
> bzr: ERROR: An inconsistent delta was supplied involving '<unknown>',
> 'intl' reason: Parent is not present in resulting inventory.
What versions of Bazaar, bzr-git and Dulwich are you using?
Can you run "bzr check" / "bzr reconcile" in the repository ? This error
is caused by bzr-git processing the existing revisions in that
repository and generating Git SHA1s for them. One of these revisions is
causing bzr-git to break.
status incomplete
Cheers,
Jelmer