reconfigure of stacked-on branch does not check stacked repo will be compatible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Reconfiguring a stacked branch to use a shared repo with a different rich-root support seems to break the branch in question. The attached script demonstrates the issue. It would be nice if either things worked or reconfigure would print a suitable error message, maybe asking users to unstack the branch first, and then abort without modifying anything.
+ bzr init --1.6 src
Created a standalone tree (format: 1.6)
+ cd src
+ echo foo > foo
+ bzr add foo
adding foo
+ bzr ci -m foo
Committing to: .../testing/src/
added foo
Committed revision 1.
+ cd ..
+ bzr clone --stacked src dst
Created new stacked branch referring to file://
+ bzr info dst
Standalone tree (format: 1.6)
Location:
branch root: dst
Related branches:
parent branch: src
stacked on: src
+ bzr init-repo --2a .
Shared repository with trees (format: 2a)
Location:
shared repository: .
+ cd dst
+ bzr reconfigure --use-shared
Doing on-the-fly conversion from <RepositoryForm
This may take some time. Upgrade the repositories to the same format for better performance.
+ bzr info
bzr: ERROR: KnitPackReposit
is not compatible with
CHKInventoryRep
different rich-root support
+ bzr status
bzr: ERROR: KnitPackReposit
is not compatible with
CHKInventoryRep
different rich-root support
tags: | added: format-infrastructure formats stacking |
tags: | added: reconfigure |
tags: | added: check-for-breezy |
summary "reconfigure of stacked-on branch does not check stacked repo will be compatible"
status confirmed
importance medium
So what is happening here is that stacking requires a format match - its
nothing specifically to do with rich root.
If you get into this state, 'bzr upgrade' of the thing you are stacked
on to the same format as your local shared repo will get it all going
again.
Note that stacked branches in shared repos isn't really a great idea
anyway, and not something we expect to see much in the wild.
-Rob