Comment 2 for bug 301739

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

Here is a way to reproduce it:

bzr init-repo --no-trees --1.9 rtest
cd rtest
$ bzr branch --stacked ../../bzr/bzr.dev/
Source format does not support stacking, using format: '1.6'
  Packs 5 (adds stacking support, requires bzr 1.6)

Created new stacked branch referring to file:///C:/Users/jameinel/dev/bzr/bzr.dev/.

$ bzr info bzr.dev/
Standalone tree (format: 1.6)
Location:
  branch root: bzr.dev

Related branches:
  parent branch: C:/Users/jameinel/dev/bzr/bzr.dev
     stacked on: C:/Users/jameinel/dev/bzr/bzr.dev

So at that point it has completely ignored the shared repository (which is 1.9 format), and just created its own standalone repository. Which is also empty:

$ ls bzr.dev/.bzr/repository/packs

# You can't tell, but that returns nothing.

If I then remove that repository I get
$ rm -rf bzr.dev/.bzr/repository
$ bzr info bzr.dev
Repository tree (format: 1.9)
Location:
  shared repository: .
  repository branch: bzr.dev

Related branches:
  parent branch: C:/Users/jameinel/dev/bzr/bzr.dev
     stacked on: C:/Users/jameinel/dev/bzr/bzr.dev

that seems okay. And
$ bzr log bzr.dev --short -r -10..-1
....

Gives a valid result. But branch does not

$ bzr branch bzr.dev test
bzr: ERROR: The branch bzr.dev/ has no revision None.