reconfigure always uses default formats

Bug #348456 reported by Alexander Belchenko
4
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Triaged
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

Revision history for this message
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)
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Martin Pool (mbp)
summary: - reconfigure always use default formats
+ reconfigure always uses default formats
Jelmer Vernooij (jelmer)
tags: added: formats reconfigure
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
tags: removed: check-for-breezy
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.