I am trying to branch python from lp:python into a new development branch using the "Team Collaboration, central style" (as specified in the Bazaar Manual chapter 5) where launchpad would act at the central repository and I could then do development on different machines operating more or less in lock-step with the launchpad server. (i.e. using checkout and bind).
I have been trying for days to implement this model but it is so poorly documented I am completely lost. The manual talks about starting a new repository, but I want to branch from an existing repository and use the "Team Collaboration, central style" model.
Everything I've tried has failed, and I wish the documentation could be updated with a how-to about this, but that's not the purpose of this bug. Rather, I am trying to spell out why I am trying to do what has caused my observed bug.
The main problem I have is getting my branched repository onto launchpad. When I branch to a local copy and then push, I cannot pull or checkout that branch onto any other machine, which is wrong. In fact, I get the following error:
bzr: ERROR: Repository KnitPackRepository('file:///<path>/.bzr/repository/') is not compatible with repository RemoteRepository(bzr+ssh://<uid>@bazaar.launchpad.net/%7E<uid>/python/<branch_name>/.bzr/)
When I use the create branch button on the launchpad page and select "Launchpad hosts", it creates an empty repository that is not compatible with any push operations basically because the Repository type is unknown when Python branches are rich-root-pack, whatever that means.
So I figure I need to execute an init-repo with --no-trees and --rich-root-pack to create a blank area for my branch and then branch into that from lp:python. I wanted to do a local test first before I pushed this onto python so I went to the Python Starship server and executed:
$ bzr init-repo --no-trees --rich-root-pack python_dev
$ cd python_dev/
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
return run_bzr(argv)
File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 790, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 927, in run
hardlink=hardlink)
File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 949, in sprout
result_repo.fetch(source_repository, revision_id=revision_id)
File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 949, in fetch
return inter.fetch(revision_id=revision_id, pb=pb, find_ghosts=find_ghosts)
File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 165, in write_locked
return unbound(self, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 2759, in fetch
revision_ids).pack()
File "/usr/lib/python2.4/site-packages/bzrlib/repofmt/pack_repo.py", line 589, in pack
return self._create_pack_from_packs()
File "/usr/lib/python2.4/site-packages/bzrlib/repofmt/pack_repo.py", line 722, in _create_pack_from_packs
self._copy_text_texts()
File "/usr/lib/python2.4/site-packages/bzrlib/repofmt/pack_repo.py", line 686, in _copy_text_texts
self.new_pack.text_index, readv_group_iter, total_items))
File "/usr/lib/python2.4/site-packages/bzrlib/repofmt/pack_repo.py", line 807, in _copy_nodes_graph
write_index, output_lines, pb, readv_group_iter, total_items):
File "/usr/lib/python2.4/site-packages/bzrlib/repofmt/pack_repo.py", line 844, in _do_copy_nodes_graph
df, _ = knit_data._parse_record_header(version_id, raw_data)
File "/usr/lib/python2.4/site-packages/bzrlib/knit.py", line 2503, in _parse_record_header
"While reading {%s} got %s(%s)"
KnitCorrupt: Knit None corrupt: While reading {svn-v3-trunk1:6015fed2-1504-0410-9fe1-9d1591cc4771:python%2Ftrunk:7375} got IOError(CRC check failed 656520909 2686516852)
bzr 1.3 on python 2.4.5.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'lp:python', '<branch_name>']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
bzrtools /usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools [1.3.0]
launchpad /usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
Please report a bug at https://bugs.launchpad.net/bzr/+filebug
including this traceback, and a description of what you
were doing when the error occurred.
"""
So I remove the <branch_name> directory (which, BTW, is not "<branch_name>", but could be "foo") and try again:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
return run_bzr(argv)
File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 790, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 927, in run
hardlink=hardlink)
File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 949, in sprout
result_repo.fetch(source_repository, revision_id=revision_id)
File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 949, in fetch
return inter.fetch(revision_id=revision_id, pb=pb, find_ghosts=find_ghosts)
File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 165, in write_locked
return unbound(self, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 2759, in fetch
revision_ids).pack()
File "/usr/lib/python2.4/site-packages/bzrlib/repofmt/pack_repo.py", line 589, in pack
return self._create_pack_from_packs()
File "/usr/lib/python2.4/site-packages/bzrlib/repofmt/pack_repo.py", line 722, in _create_pack_from_packs
self._copy_text_texts()
File "/usr/lib/python2.4/site-packages/bzrlib/repofmt/pack_repo.py", line 673, in _copy_text_texts
text_nodes = set(text_nodes)
File "/usr/lib/python2.4/site-packages/bzrlib/index.py", line 1074, in iter_entries
for node in index.iter_entries(keys):
File "/usr/lib/python2.4/site-packages/bzrlib/index.py", line 478, in iter_entries
return (result[1] for result in bisect_multi_bytes(
File "/usr/lib/python2.4/site-packages/bzrlib/bisect_multi.py", line 50, in bisect_multi_bytes
search_results = content_lookup(search_keys)
File "/usr/lib/python2.4/site-packages/bzrlib/index.py", line 621, in _lookup_keys_via_location
self._read_and_parse(readv_ranges)
File "/usr/lib/python2.4/site-packages/bzrlib/index.py", line 964, in _read_and_parse
self._parse_region(offset, data)
File "/usr/lib/python2.4/site-packages/bzrlib/index.py", line 751, in _parse_region
high_parsed, last_segment = self._parse_segment(
File "/usr/lib/python2.4/site-packages/bzrlib/index.py", line 856, in _parse_segment
self._bisect_nodes[key] = value
MemoryError
bzr 1.3 on python 2.4.5.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'lp:python', '<branch_name>']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
bzrtools /usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools [1.3.0]
launchpad /usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
Please report a bug at https://bugs.launchpad.net/bzr/+filebug
including this traceback, and a description of what you
were doing when the error occurred.
"""
Does anyone know what's going on and how to do what I was trying to do in the first place. Obviously, my real problem is that I can't figure out what is the correct way to branch python onto launchpad while using the "Team Collaboration, central style" for development, but that is more a documentation bug if anything and no-one I think exists to help me with that problem. So all I have to cling to is the hope that someone can fix the hard bug of bzr branch crashing and then maybe I can use that to achieve my goals.
Hello,
I am trying to branch python from lp:python into a new development branch using the "Team Collaboration, central style" (as specified in the Bazaar Manual chapter 5) where launchpad would act at the central repository and I could then do development on different machines operating more or less in lock-step with the launchpad server. (i.e. using checkout and bind).
I have been trying for days to implement this model but it is so poorly documented I am completely lost. The manual talks about starting a new repository, but I want to branch from an existing repository and use the "Team Collaboration, central style" model.
Everything I've tried has failed, and I wish the documentation could be updated with a how-to about this, but that's not the purpose of this bug. Rather, I am trying to spell out why I am trying to do what has caused my observed bug.
The main problem I have is getting my branched repository onto launchpad. When I branch to a local copy and then push, I cannot pull or checkout that branch onto any other machine, which is wrong. In fact, I get the following error:
bzr: ERROR: Repository KnitPackReposit ory('file: ///<path> /.bzr/repositor y/') is not compatible with repository RemoteRepositor y(bzr+ssh: //<uid> @bazaar. launchpad. net/%7E< uid>/python/ <branch_ name>/. bzr/)
When I use the create branch button on the launchpad page and select "Launchpad hosts", it creates an empty repository that is not compatible with any push operations basically because the Repository type is unknown when Python branches are rich-root-pack, whatever that means.
So I figure I need to execute an init-repo with --no-trees and --rich-root-pack to create a blank area for my branch and then branch into that from lp:python. I wanted to do a local test first before I pushed this onto python so I went to the Python Starship server and executed:
$ bzr init-repo --no-trees --rich-root-pack python_dev
$ cd python_dev/
and finally
$ bzr branch lp:python <branch_name>
That thinks for a bit, gets as far as stage 3/5 and then I get:
""" errors. KnitCorrupt: Knit None corrupt: While reading {svn-v3- trunk1: 6015fed2- 1504-0410- 9fe1-9d1591cc47 71:python% 2Ftrunk: 7375} got IOError(CRC check failed 656520909 2686516852)
bzr: ERROR: bzrlib.
Traceback (most recent call last): python2. 4/site- packages/ bzrlib/ commands. py", line 834, in run_bzr_ catch_errors python2. 4/site- packages/ bzrlib/ commands. py", line 790, in run_bzr python2. 4/site- packages/ bzrlib/ commands. py", line 492, in run_argv_aliases **all_cmd_ args) python2. 4/site- packages/ bzrlib/ builtins. py", line 927, in run hardlink) python2. 4/site- packages/ bzrlib/ bzrdir. py", line 949, in sprout repo.fetch( source_ repository, revision_ id=revision_ id) python2. 4/site- packages/ bzrlib/ repository. py", line 949, in fetch revision_ id=revision_ id, pb=pb, find_ghosts= find_ghosts) python2. 4/site- packages/ bzrlib/ decorators. py", line 165, in write_locked python2. 4/site- packages/ bzrlib/ repository. py", line 2759, in fetch ids).pack( ) python2. 4/site- packages/ bzrlib/ repofmt/ pack_repo. py", line 589, in pack pack_from_ packs() python2. 4/site- packages/ bzrlib/ repofmt/ pack_repo. py", line 722, in _create_ pack_from_ packs _copy_text_ texts() python2. 4/site- packages/ bzrlib/ repofmt/ pack_repo. py", line 686, in _copy_text_texts new_pack. text_index, readv_group_iter, total_items)) python2. 4/site- packages/ bzrlib/ repofmt/ pack_repo. py", line 807, in _copy_nodes_graph python2. 4/site- packages/ bzrlib/ repofmt/ pack_repo. py", line 844, in _do_copy_ nodes_graph _parse_ record_ header( version_ id, raw_data) python2. 4/site- packages/ bzrlib/ knit.py" , line 2503, in _parse_ record_ header trunk1: 6015fed2- 1504-0410- 9fe1-9d1591cc47 71:python% 2Ftrunk: 7375} got IOError(CRC check failed 656520909 2686516852)
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
hardlink=
File "/usr/lib/
result_
File "/usr/lib/
return inter.fetch(
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
revision_
File "/usr/lib/
return self._create_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
write_index, output_lines, pb, readv_group_iter, total_items):
File "/usr/lib/
df, _ = knit_data.
File "/usr/lib/
"While reading {%s} got %s(%s)"
KnitCorrupt: Knit None corrupt: While reading {svn-v3-
bzr 1.3 on python 2.4.5.final.0 (linux2) python2. 4/site- packages/ bzrlib/ plugins/ bzrtools [1.3.0] python2. 4/site- packages/ bzrlib/ plugins/ launchpad [unknown] /bugs.launchpad .net/bzr/ +filebug
arguments: ['/usr/bin/bzr', 'branch', 'lp:python', '<branch_name>']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
bzrtools /usr/lib/
launchpad /usr/lib/
*** 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.
"""
So I remove the <branch_name> directory (which, BTW, is not "<branch_name>", but could be "foo") and try again:
$ rm -rf <branch_name>/
$ bzr branch lp:python <branch_name>
And this time I get:
""" MemoryError:
bzr: ERROR: exceptions.
Traceback (most recent call last): python2. 4/site- packages/ bzrlib/ commands. py", line 834, in run_bzr_ catch_errors python2. 4/site- packages/ bzrlib/ commands. py", line 790, in run_bzr python2. 4/site- packages/ bzrlib/ commands. py", line 492, in run_argv_aliases **all_cmd_ args) python2. 4/site- packages/ bzrlib/ builtins. py", line 927, in run hardlink) python2. 4/site- packages/ bzrlib/ bzrdir. py", line 949, in sprout repo.fetch( source_ repository, revision_ id=revision_ id) python2. 4/site- packages/ bzrlib/ repository. py", line 949, in fetch revision_ id=revision_ id, pb=pb, find_ghosts= find_ghosts) python2. 4/site- packages/ bzrlib/ decorators. py", line 165, in write_locked python2. 4/site- packages/ bzrlib/ repository. py", line 2759, in fetch ids).pack( ) python2. 4/site- packages/ bzrlib/ repofmt/ pack_repo. py", line 589, in pack pack_from_ packs() python2. 4/site- packages/ bzrlib/ repofmt/ pack_repo. py", line 722, in _create_ pack_from_ packs _copy_text_ texts() python2. 4/site- packages/ bzrlib/ repofmt/ pack_repo. py", line 673, in _copy_text_texts python2. 4/site- packages/ bzrlib/ index.py" , line 1074, in iter_entries entries( keys): python2. 4/site- packages/ bzrlib/ index.py" , line 478, in iter_entries python2. 4/site- packages/ bzrlib/ bisect_ multi.py" , line 50, in bisect_multi_bytes lookup( search_ keys) python2. 4/site- packages/ bzrlib/ index.py" , line 621, in _lookup_ keys_via_ location _read_and_ parse(readv_ ranges) python2. 4/site- packages/ bzrlib/ index.py" , line 964, in _read_and_parse _parse_ region( offset, data) python2. 4/site- packages/ bzrlib/ index.py" , line 751, in _parse_region segment( python2. 4/site- packages/ bzrlib/ index.py" , line 856, in _parse_segment _bisect_ nodes[key] = value
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
hardlink=
File "/usr/lib/
result_
File "/usr/lib/
return inter.fetch(
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
revision_
File "/usr/lib/
return self._create_
File "/usr/lib/
self.
File "/usr/lib/
text_nodes = set(text_nodes)
File "/usr/lib/
for node in index.iter_
File "/usr/lib/
return (result[1] for result in bisect_multi_bytes(
File "/usr/lib/
search_results = content_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
high_parsed, last_segment = self._parse_
File "/usr/lib/
self.
MemoryError
bzr 1.3 on python 2.4.5.final.0 (linux2) python2. 4/site- packages/ bzrlib/ plugins/ bzrtools [1.3.0] python2. 4/site- packages/ bzrlib/ plugins/ launchpad [unknown] /bugs.launchpad .net/bzr/ +filebug
arguments: ['/usr/bin/bzr', 'branch', 'lp:python', '<branch_name>']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
bzrtools /usr/lib/
launchpad /usr/lib/
*** 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.
"""
Does anyone know what's going on and how to do what I was trying to do in the first place. Obviously, my real problem is that I can't figure out what is the correct way to branch python onto launchpad while using the "Team Collaboration, central style" for development, but that is more a documentation bug if anything and no-one I think exists to help me with that problem. So all I have to cling to is the hope that someone can fix the hard bug of bzr branch crashing and then maybe I can use that to achieve my goals.
Thanks again!