reconfigure always uses default formats

Bug #348456 reported by Alexander Belchenko on 2009-03-25
4
Affects Status Importance Assigned to Milestone
Bazaar
Medium
Unassigned

Bug Description

reconfigure allows to change lightweight checkout to heavyweight checkout, or repository branch/tree to standalone branch/tree. Unfortunately for this operations this command wrongly using default formats for branch/repo. It's wrong.

To reproduce:

C:\Temp>bzr init-repo --1.9 1.9
Shared repository with trees (format: 1.9 or development-wt5)
Location:
  shared repository: 1.9

C:\Temp\1.9>bzr init branch --1.9
Created a repository tree (format: 1.9)
Using shared repository: C:/Temp/1.9/

C:\Temp\1.9>bzr info branch
Repository tree (format: 1.9)
Location:
  shared repository: .
  repository branch: branch

C:\Temp\1.9>bzr reconfigure branch --standalone

C:\Temp\1.9>bzr info branch
Standalone tree (format: unnamed)
Location:
  branch root: branch

C:\Temp\1.9>bzr info branch -v
Standalone tree (format: unnamed)
Location:
  branch root: branch

Format:
       control: Meta directory format 1
  working tree: Working tree format 4
        branch: Branch format 7
    repository: Packs containing knits without subtree support

In the working tree:
         0 unchanged
         0 modified
         0 added
         0 removed
         0 renamed
         0 unknown
         0 ignored
         0 versioned subdirectories

Branch history:
         0 revisions

Repository:
         0 revisions

This is wrong. Similar wrong behavior and for reconfigure light checkout to full checkout.
bzr 1.13.1

Samuel Bronson (naesten) wrote :

Perhaps more interestingly:

bronson@fry:~/devel/dosemu2$ bzr info -v
Lightweight checkout (format: 1.6 or 1.6.1-rich-root or 1.9 or 1.9-rich-root or dirstate or dirstate-tags or pack-0.92 or rich-root or rich-root-pack)
Location:
  light checkout root: .
   checkout of branch: /home/noncsci/bronson/devel/dosemu-repo/hackz
    shared repository: /home/noncsci/bronson/devel/dosemu-repo

Related branches:
  parent branch: /home/naesten/hacking/dosemu-repo/trunk

Format:
       control: Meta directory format 1
  working tree: Working tree format 4
        branch: Branch format 7
    repository: Packs 6 rich-root (uses btree indexes, requires bzr 1.9)

In the working tree:
       867 unchanged
         0 modified
         0 added
         0 removed
         0 renamed
       395 unknown
       278 ignored
        82 versioned subdirectories

Branch history:
      1647 revisions
      2117 days old
   first revision: Sun 2003-06-22 23:02:05 +0000
  latest revision: Thu 2009-04-02 17:18:06 -0400

Repository:
      1859 revisions
bronson@fry:~/devel/dosemu2$ bzr reconfigure --checkout
bzr: ERROR: KnitPackRepository('file:///home/noncsci/bronson/devel/dosemu2/.bzr/repository/')
is not compatible with
KnitPackRepository('file:///home/noncsci/bronson/devel/dosemu-repo/.bzr/repository/')
different rich-root support

Martin Pool (mbp) on 2009-07-06
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Martin Pool (mbp) on 2009-07-06
summary: - reconfigure always use default formats
+ reconfigure always uses default formats
Jelmer Vernooij (jelmer) on 2011-02-01
tags: added: formats reconfigure
Jelmer Vernooij (jelmer) on 2017-11-08
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