Commit by delta is broken with trees updated by join

Bug #357818 reported by Aaron Bentley
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
Breezy
Fix Released
High
Unassigned

Bug Description

Attempts to commit produce:
bzr: ERROR: An inconsistent delta was supplied involving 'libsomethinglibsomething.cpp', 'libsomething.cpp-20090408161204-3t4j6rkqz2dsk6mf-1'
reason: working tree does not contain new entry

A script to reproduce the error is attached.

Tags: 2a join
Revision history for this message
Aaron Bentley (abentley) wrote :
Changed in bzr:
assignee: nobody → Robert Collins (lifeless)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Robert Collins (lifeless) wrote :

This looks like a bug in the join operation, rather than in commit. As join still isn't fully supported its not on my critical path for helping get 2.0 out the door. Unassigning from me to make clear I'm not working on it.

Changed in bzr:
assignee: Robert Collins (lifeless) → nobody
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Definatly reproducible.

You cannot join anything in a branch which has no history and hence has no root_id?

Shouldn't join generate a new root_id for the containing branch?

Note in the bzr st is says "/ => a/" which is clearly not the intention.

Workaround is $ bzr ci -m "Starting join" --unchanged to get yourselv revision 1.

$ bzr init no-history
$ cd no-history/
$ bzr branch ../a
Branched 1 revision(s).
$ bzr join a
$ bzr st
working tree is out of date, run 'bzr update'
renamed:
  / => a/
unknown:
  a/.bzr.retired.0/
$ bzr update
bzr: ERROR: branch has no revision null:
bzr update --revision only works for a revision in the branch history
$ bzr revno
0
$ bzr ci -m "????"
Committing to: /tmp/tada/no-history/
renamed => a
bzr: ERROR: An inconsistent delta was supplied involving 'aa', 'a-20100503130914-4twyn7in4cdd742n-1'
reason: working tree does not contain new entry

tags: added: 2a join
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Related bug #308562 same case. Should be duplicate?

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Dmitrijs, you're running into bug 308562, but that's different from this one.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Fix Released
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.