Format "unnamed" when creating "default" branches in newer repository formats

Bug #292553 reported by Ronald Blaschke
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Triaged
Medium
Unassigned

Bug Description

I'm using bzr 1.9rc1 with Python 2.6, on Windows XP.

Here's what happens when a default repository and a branch is created. Repository and branch are in pack-0.92 format.
C:\tmp$ mkdir repo && cd repo

C:\tmp\repo$ bzr init-repo .
Shared repository with trees (format: pack-0.92)
Location:
  shared repository: .

C:\tmp\repo$ bzr init trunk
Repository tree (format: pack-0.92)
Location:
  shared repository: .
  repository branch: trunk

Here's the output for a rich-root-pack repository. Note that the branch is also rich-root-pack.
C:\tmp$ mkdir repo && cd repo

C:\tmp\repo$ bzr init-repo --rich-root-pack .
Shared repository with trees (format: rich-root-pack)
Location:
  shared repository: .

C:\tmp\repo$ bzr init trunk
Repository tree (format: rich-root-pack)
Location:
  shared repository: .
  repository branch: trunk

Here's a 1.6 repository. Note that the branch is in format "unnamed."
C:\tmp\repo$ bzr init-repo --1.6 .
Shared repository with trees (format: 1.6)
Location:
  shared repository: .

C:\tmp\repo$ bzr init trunk
Repository tree (format: unnamed)
Location:
  shared repository: .
  repository branch: trunk

I would have expected format "1.6." The content of .bzr/branch/format is:
    Bazaar Branch Format 6 (bzr 0.15)

When creating a branch with "bzr init --1.6 trunk" the format is:
    Bazaar Branch Format 7 (needs bzr 1.6)

Revision history for this message
John A Meinel (jameinel) wrote :

I agree, it would be very reasonable for "bzr init" to pick up the default branch format for the containing repository, rather than always using the global default.

Changed in bzr:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Alexander Belchenko (bialix) wrote :

Ronald, you can workaround this issue by providing explicit format for the branch inside repo:

C:\tmp\repo$ bzr init-repo --1.6 .
Shared repository with trees (format: 1.6)

C:\tmp\repo$ bzr init trunk --1.6
Repository tree (format: 1.6)

Bzr should works better though.

Martin Pool (mbp)
Changed in bzr:
status: Triaged → Confirmed
Jelmer Vernooij (jelmer)
tags: added: formats formatui info
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: added: format-infrastructure
removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.