Branching from hpss doesn't preserve non-repository formats

Bug #173002 reported by Andrew Bennetts
Affects Status Importance Assigned to Milestone

Bug Description

Bug 164626 fixed and added tests to ensure that branching from a smart server will preserve the repository format.

This bug is about making sure the other formats (bzrdir, branch, and maybe even workingtree) also do the right thing, and have tests to ensure it.

There are already a branch_implementations test for Branch.sprout preserving the format, IIRC. But ideally we want to make sure that the whole constellation of formats is preserved when creating new bzrdirs/branches/repos/workingtrees. (Keeping in mind that not all are created everytime; e.g. working trees aren't created in a no-trees repo, and a repo isn't created if the new branch is inside a shared repo)

Tags: hpss
Andrew Bennetts (spiv)
Changed in bzr:
importance: Undecided → Medium
Martin Pool (mbp)
Changed in bzr:
importance: Medium → High
Revision history for this message
James Troup (elmo) wrote :
Download full text (3.7 KiB)

| $ bzr branch bzr+ssh://
| Copying repository content as tarball...
| bzr: ERROR: Tags not supported by BzrBranch5('file:///home/james/scratch/x/trunk/'); you may be able to use bzr upgrade --dirstate-tags.
| zsh: exit 3 bzr branch
| $

I'm using 0.90 locally (gutsy) and the remote end is 0.92.

| troup@samosa:/srv/$ bzr info -v
| Repository branch (format: dirstate-tags)
| Location:
| shared repository: /org/
| repository branch: .
| Related branches:
| parent branch: /org/
| Format:
| control: Meta directory format 1
| branch: Branch format 6
| repository: Knit repository format 1
| Branch history:
| 378 revisions
| 12 committers
| 3043 days old
| first revision: Wed 1999-09-22 03:19:03 +0000
| latest revision: Thu 2008-01-10 16:07:10 +0100
| Repository:
| 417 revisions
| 1034 KiB

If I upgrade to 1.0 locally, the problem disappears, but according to
folks in #bzr, this is more happy coincidence than anything else.

Relevant: ~/.bzr.log output:

bzr arguments: [u'branch', u'bzr+ssh://']
looking for plugins in /home/james/.bazaar/plugins
looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
encoding stdout as sys.stdout encoding 'UTF-8'
ssh implementation is OpenSSH
created control directory in file:///home/james/scratch/x/trunk/
creating repository in file:///home/james/scratch/x/trunk/.bzr/.
[26895] Mon 19:46:46.401 INFO: Copying repository content as tarball...
Using fetch logic to copy between KnitRepository('file:///tmp/tmpfpm5Io/.bzr/')(<RepositoryFormatKnit1>) and KnitRepository('file:///home/james/scratch/x/trunk/.bzr/')(<RepositoryFormatKnit1>)
fetch up to rev {<email address hidden>}
creating branch <bzrlib.branch.BzrBranchFormat5 object at 0xb7a1aaec> in file:///home/james/scratch/x/trunk/.bzr/
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 817, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 779, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 477, in run_argv_aliases
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 885, in run
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 801, in sprout
    source_branch.sprout(result, revision_id=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1068, in sprout
    self.copy_content_into(result, revision_id=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 127, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/b...


Revision history for this message
Andrew McClain (awmcclain) wrote :

Also occurs for rich-root-pack format... So you can't bzr checkout a former SVN branch in a repository.

Changed in bzr:
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: hpss
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
Changed in brz:
importance: Medium → High
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.