Call for testing of colocated branch support in bzr.dev
Aaron Bentley
aaron at aaronbentley.com
Wed Feb 22 17:31:54 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12-02-20 04:49 PM, Martin Pool wrote:
> On 20 February 2012 21:56, John Arbash Meinel
> <john at arbash-meinel.com> wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>
>> ...
>>
>>> mbp at joy% bzr push lp:~mbp/launchpad/test-push bzr: ERROR:
>>> Server sent an unexpected error: ('error', 'KeyError', "'Bazaar
>>> meta directory, format 1 (with colocated branches)\\n'") HPSS
>>> calls: 2 (0 vfs)
>>> SmartSSHClientMedium(bzr+ssh://mbp@bazaar.launchpad.net/)
>>>
>>> (which is not so surprising, until support is landed there.)
>>>
>>> But, if I try to push into a newly created branch, it seems to
>>> get stacking wrong and to transfer an overly large amount of
>>> data. Digging in to this a bit more, I think it is because
>>> Launchpad (or Bazaar?) doesn't autoconfigure stacking properly
>>> if you create a branch, then separately push to it, which is
>>> probably a bug regardless of colo stuff.
>>>
>>> It will be nice when we can use this for repos on lp and get
>>> away from stacking.
>>>
>>> I'm pretty sure this is a bug in init, perhaps an old latent
>>> bug: <https://bugs.launchpad.net/bzr/+bug/936772>
>>
>> I'm pretty sure it is a known bug that an interrupted push
>> creates a .bzr directory, but no branch, such that a second push
>> creates a full branch without stacking.
>
> Yes, there is that bug, but I'm pretty sure that's not what I'm
> hitting here.
>
> My bug is:
>
> 1- bzr init LP_URL # no interruption or error 2-
> b.get_stacked_on_url() --> None, but it should be the trunk
Strange. It says it's stacking why I try, but then there's no stacked
config at the end:
$ bzr init lp:~abentley/bzrtools/stack-test
Using default stacking branch /+branch-id/8633 at
bzr+ssh://bazaar.launchpad.net/~abentley/bzrtools/
Created a standalone branch (format: unnamed)
python -c 'from bzrlib.branch import Branch; print
Branch.open("bzr+ssh://bazaar.launchpad.net/~abentley/bzrtools/stack-test").get_stacked_on_url()'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 3509,
in get_stacked_on_url
_translate_error(err, branch=self)
File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 4195,
in _translate_error
raise translator(err, find, get_path)
bzrlib.errors.NotStacked: The branch
'RemoteBranch(bzr+ssh://bazaar.launchpad.net/~abentley/bzrtools/stack-test/)'
is not stacked.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9FJooACgkQ0F+nu1YWqI1aUwCdEXS5/o0BodeUJANwQi3jXprI
h1QAn0Wb+65+rHm0XYZy7na21cmJ8VEa
=gegv
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list