branch --stacked from bzr+ssh to standalone fails with wrong target format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Andrew Bennetts |
Bug Description
Failure with bzr 1.7rc1 and bzr.dev (as at 15th Sept 2008):
bzr branch --stacked bzr+ssh:
Source format does not support stacking, using format: '1.6'
Packs 5 (adds stacking support, requires bzr 1.6)
bzr: ERROR: The branch 'file:/
This works fine with 1.6.1rc1.
## the source branch is like this as seen by the client machine:
$ /data/users/
Repository branch (format: unnamed)
Location:
shared repository: bzr+ssh:
repository branch: bzr+ssh:
Related branches:
parent branch: bzr+ssh:
Format:
control: bzr remote bzrdir
branch: Remote BZR Branch
repository: bzr remote repository
Branch history:
3705 revisions
22 committers
236 days old
first revision: Tue 2008-01-22 07:39:26 +0100
latest revision: Fri 2008-09-12 16:38:16 +0200
Repository:
7208 revisions
## and like this when seen locally
$ /home/CmsRoot/
Repository branch (format: pack-0.92)
Location:
shared repository: /home/CmsRoot/
repository branch: .
Related branches:
parent branch: /home/CmsRoot/
Format:
control: Meta directory format 1
branch: Branch format 6
repository: Packs containing knits without subtree support
Branch history:
3705 revisions
22 committers
236 days old
first revision: Tue 2008-01-22 07:39:26 +0100
latest revision: Fri 2008-09-12 16:38:16 +0200
Repository:
7208 revisions
## just to prove that I'm not positioned in a shared repos:
$ bzr info
bzr: ERROR: Not a branch: "/volumes0/
$ ls -a
. ..
## Call bzr to create a stacked branch:
$ /data/users/
Source format does not support stacking, using format: '1.6'
Packs 5 (adds stacking support, requires bzr 1.6)
bzr: ERROR: The branch 'file:/
## There is now a partially made target branch:
$ bzr info -v CVT_t1.0
Standalone branch (format: unnamed)
Location:
branch root: .
Related branches:
parent branch: bzr+ssh:
Format:
control: Meta directory format 1
branch: Branch format 6
repository: Packs 5 (adds stacking support, requires bzr 1.6)
Branch history:
0 revisions
0 committers
Repository:
0 revisions
Changed in bzr: | |
status: | New → Confirmed |
The problem seems to be that RemoteBranch.sprout didn't get the same update as Branch.sprout to rely on the to_bzrdir for the branch_format. I have a probable fix that I'm testing now.
In the meantime, using sftp:// instead of bzr+ssh:// URLs for the source branch should workaround the problem.