pushing a non-stacking format into a non-repo bzrdir with a default stacking policy creates broken branch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Critical
|
Aaron Bentley |
Bug Description
This transcript hopefully illustrates the problem:
mwh@grond:repos$ rm -rf ~/tmp/argh
mwh@grond:repos$ mkdir -p ~/tmp/argh
mwh@grond:repos$ bzr init b1
mwh@grond:repos$ cd b1
mwh@grond:b1$ touch file
mwh@grond:b1$ bzr add
added file
mwh@grond:b1$ bzr ci -m .
Committing to: /home/mwh/
added file
You need a passphrase to unlock the secret key for
user: "Michael Hudson <email address hidden>"
1024-bit DSA key, ID 6EC0EE48, created 2007-09-28
Committed revision 1.
mwh@grond:b1$ cd ../
mwh@grond:repos$ bzr branch b1 b2
Branched 1 revision(s).
mwh@grond:repos$ cd b2
mwh@grond:b2$ touch file2
mwh@grond:b2$ bzr add
added file2
mwh@grond:b2$ bzr ci -m ..
Committing to: /home/mwh/
added file2
You need a passphrase to unlock the secret key for
user: "Michael Hudson <email address hidden>"
1024-bit DSA key, ID 6EC0EE48, created 2007-09-28
Committed revision 2.
mwh@grond:b2$ mkdir t
mwh@grond:b2$ bzr push -d b1 t/b1
Created new branch.
mwh@grond:b2$ python2.4
Python 2.4.5 (#2, Jul 31 2008, 19:04:55)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from bzrlib import bzrdir
>>> f = bzrdir.
>>> d = f.initialize('t')
>>> d.get_config(
>>> import sys
>>> sys.exit()
mwh@grond:b2$ bzr push bzr+ssh:
Using default stacking branch b1 at bzr+ssh:
using <bzrlib.
Created new branch.
mwh@grond:b2$ bzr revision-history t/b2
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
for revid in branch.
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
history = self._gen_
File "/usr/lib/
self.
File "/usr/lib/
for revision_id in iterator:
File "/usr/lib/
parents = graph.get_
KeyError: '<email address hidden>'
bzr 1.6rc3 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'revision-history', 't/b2']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_NZ.UTF-8'
plugins:
avahi /home/mwh/
bpm /home/mwh/
bzrtools /usr/lib/
dbus /home/mwh/
fastimport /home/mwh/
gtk /home/mwh/
launchpad /usr/lib/
loom /home/mwh/
lpreview /home/mwh/
merged /home/mwh/
pqm /home/mwh/
pybloom /home/mwh/
search /home/mwh/
service /home/mwh/
svn /home/mwh/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
Changed in bzr: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in bzr: | |
assignee: | nobody → abentley |
FWIW, if I push to to a local path instead of over bzr+ssh, the push fails during building the working tree, but it's already created an identically broken branch.