bzr reconfigure --standalone breaks externals

Bug #813763 reported by Florian Rathgeber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Externals plugin
Confirmed
Undecided
Unassigned

Bug Description

Suppose you have a bzr branch 'mybranch' that uses a shared repository 'repo' with externals (that also use the same shared repository) ext1, ext2 etc. in a layout like this:
  /repo
    /mybranch
      /ext1
      /ext2

Now in 'mybranch' you do 'bzr reconfigure --standalone' to stop using the shared repository.

Any operation on the externals will now fail with the error message 'bzr: ERROR: No repository present: "file:///.../repo/mybranch/ext1/"'

Reproducibility: always

Steps to reproduce:
bzr init-repo repo && cd repo
bzr init mybranch && cd mybranch
bzr eadd lp:bzr-externals ext1
# bzr info ext1 will now indicate it uses the shared repository
bzr ci -m "add external"
bzr reconfigure --standalone
# bzr info ext1 will now fail with 'bzr: ERROR: No repository present'

The workaround is to first reconfigure all the externals as standalone branches and only finally reconfigure the branch containing the externals.

A fix would be the externals plugin intercepting reconfigure on the externals' parent branch and first (in a depth-first ordering) reconfigure all the externals.

Revision history for this message
Eugene Tarasenko (etarasenko) wrote :

bzr not correct reconfigure nested branches - corrupt file .bzr/checkout/dirstate

Bazaar 2.1.4 from Lucid, externals 1.3.2

affects: bzr-externals → bzr
Revision history for this message
Eugene Tarasenko (etarasenko) wrote :

I recommended use next command for reconfigure external branches first before main branch:
  bzr ecmd -- reconfigure --standalone

Vincent Ladeuil (vila)
affects: bzr → bzr-externals
Changed in bzr-externals:
status: New → Confirmed
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.