[Pkg-bazaar-maint] Bug#498625: bzr: Branching fails with "pack already exists", then succeeds
Roland Mas
lolando at debian.org
Thu Sep 11 15:47:50 UTC 2008
Package: bzr
Version: 1.5-1.1
Severity: normal
I'm working on a patched version of GForge for a client ("foo"), where
I tried to separate each added feature into its own feature branch (I
have ~20 of these branches). The branching scheme looks a bit like
this:
$debianrepo/gforge/debian/etch
\-> $debianrepo/gforge/patched/4.5+php5+classrenames+etch
\-> $gnurandalrepo/gforge/patched/foo
\-> $gnurandalrepo/gforge/patches/foo/*
$debianrepo is my public repository, $gnurandalrepo is the one I use
for my not-yet-public branches. The $gnurandalrepo/gforge/patched/foo
and $gnurandalrepo/gforge/patches/foo/* branches are regularly kept
up-to-date with $debianrepo/gforge/patched/4.5+php5+classrenames+etch
with "bzr merge --lca", and patched/foo is the integration branch, on
which I also do merges from the patches/foo/* feature branches.
Now I'm trying to prepare a deliverable for the client; that
deliverable includes all relevant branches. So I have a script that
looks like this:
,----
| mkdir deliverable
| cd deliverable
| bzr init-repo --no-trees --format=rich-root-pack .
| mkdir gforge
| mkdir gforge/patches
|
| bzr branch $debianrepo/gforge/debian/etch gforge/etch
| bzr branch $debianrepo/gforge/patched/4.5+php5+classrenames+etch gforge/4.5+php5+classrenames+etch
| for i in $(bzr branches $gnurandalrepo/gforge/patches/foo) ; do
| bzr branch $gnurandalrepo/gforge/patches/foo/$i gforge/patches/$i
| done
| bzr branch $gnurandalrepo/gforge/patched/foo gforge/foo || true
| # bzr: ERROR: Pack 'a629a96b39478b58729b532fb158547c' already exists in <bzrlib.repofmt.pack_repo.RepositoryPackCollection object at 0xa276aec>
| rm -r gforge/foo
| bzr branch $gnurandalrepo/gforge/patched/foo gforge/foo
| # OK
`----
For some reason, the first time I try to clone the patched/foo
branch, I get a failure with the above message. Doing the very same
command again works, as does branching immediately afterwards under
another name (before the rm -r). I can live with the workaround, but
that sounds fishy, and Jelmer suggests I report the bug.
Roland.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages bzr depends on:
ii libc6 2.7-13 GNU C Library: Shared libraries
ii python 2.5.2-2 An interactive high-level object-o
ii python-celementtree 1.0.5-10 Light-weight toolkit for XML proce
ii python-central 0.6.8 register and build utility for Pyt
Versions of packages bzr recommends:
ii bzrtools 1.5.0-1 Collection of tools for bzr
ii python-paramiko 1.7.4-0.1 Make ssh v2 connections with pytho
Versions of packages bzr suggests:
ii bzr-gtk 0.94.0-1 provides graphical interfaces to B
ii bzr-svn 0.4.10-2 Bazaar plugin providing Subversion
ii python-pycurl 7.18.2-1 Python bindings to libcurl
ii xdg-utils 1.0.2-6 desktop integration utilities from
-- no debconf information
--
Roland Mas
Infinity contains more things than you think. Everything, for a start.
-- in Witches Abroad (Terry Pratchett)
More information about the Pkg-bazaar-maint
mailing list