cannot commit in the containing tree which has by-reference joined trees [2a]

Bug #515947 reported by Stuart Colville on 2010-02-02
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Low
Unassigned

Bug Description

Raising this as a separate bug from #369923 as the initial bug report doesn't seem to totally tie up with druido's comment.

mkdir foo && cd foo
bzr init
mkdir baz
touch file
bzr add
bzr ci -m "initial"
bzr split baz
bzr join --reference baz
cd baz
touch file
bzr add
bzr ci -m "initial subtree"
cd ../
bzr ignore baz/.bzr
bzr: ERROR: The method _generate_inventory is not supported on objects of type CHKInventoryRepository.

Bazaar (bzr) 2.0.4
  Python interpreter: /usr/bin/python 2.6.4
  Python standard library: /usr/lib/python2.6
  Platform: Linux-2.6.31-17-generic-i686-with-Ubuntu-9.10-karmic
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/scol/.bazaar
  Bazaar log file: /home/scol/.bzr.log

Copyright 2005, 2006, 2007, 2008, 2009 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

description: updated

Added traceback from relevant part of bzr.log

John A Meinel (jameinel) wrote :

Format 2a is explicitly not a 'subtree' capable format. As such, 'bzr join --reference' should refuse to work, rather than failing with an error.

Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Dimitri John Ledkov (xnox) wrote :

John A meinel: Really? join & split work fine. join --reference doesn't. Do you mean just the by-reference once?

tags: added: join
Dimitri John Ledkov (xnox) wrote :

Confirming - cannot commit in the containing tree which have by-references joined trees 2a.

summary: - bzr join --reference breaks 2a format trees
+ cannot commit in the containing tree which has by-reference joined trees
+ [2a]
John A Meinel (jameinel) wrote :

bzr join --by-reference should not work in 2a format. It *should* fail at join time, it seems to only fail at commit time.

To my understanding join --reference doesn't do anything useful in a 2a format tree anyway. It works, but all files in the joined subtree are reported as unknown, including its .bzr directory. That's certainly not the intended behavior, is it?

What is the current state of join --reference? Is it supposed to work at all? And if so, what tree format is required?

On Tue, 2010-12-21 at 13:15 +0000, Florian Rathgeber wrote:
> To my understanding join --reference doesn't do anything useful in a 2a
> format tree anyway. It works, but all files in the joined subtree are
> reported as unknown, including its .bzr directory. That's certainly not
> the intended behavior, is it?
>
> What is the current state of join --reference? Is it supposed to work at
> all? And if so, what tree format is required?
No, join by reference doesn't work properly yet. The development-subtree
format does support nested trees but it only allows you to record them.

by-reference nested trees are not supported yet, which is also why "bzr
join --reference" is not shown by e.g. "bzr help join".

Cheers,

Jelmer

Jelmer Vernooij (jelmer) on 2017-11-09
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments