Activity log for bug #221060

Date Who What changed Old value New value Message
2008-04-23 15:18:07 TimeHorse bug added bug
2008-04-23 16:43:19 TimeHorse description 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 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/ and finally $ bzr branch lp:python <branch_name> That thinks for a bit, gets as far as stage 3/5 and then I get: """ bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit None corrupt: While reading {svn-v3-trunk1:6015fed2-1504-0410-9fe1-9d1591cc4771:python%2Ftrunk:7375} got IOError(CRC check failed 656520909 2686516852) 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: $ rm -rf <branch_name>/ $ bzr branch lp:python <branch_name> And this time I get: """ bzr: ERROR: exceptions.MemoryError: 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. Thanks again! Hello, I am trying to branch python from lp:python into a new development branch using the "Team Collaboration, central style". 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: """ bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit None corrupt: While reading {svn-v3-trunk1:6015fed2-1504-0410-9fe1-9d1591cc4771:python%2Ftrunk:7375} got IOError(CRC check failed 656520909 2686516852) 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: $ rm -rf <branch_name>/ $ bzr branch lp:python <branch_name> And this time I get: """ bzr: ERROR: exceptions.MemoryError: 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. """ So I tried a third time and that locked up Starship and it had to be killed.
2008-04-23 16:43:19 TimeHorse title Cannot branch Python onto launchpad Branch into an init-repo'd --no_trees --rich-root-pack fails.
2008-10-26 23:57:34 Martin Pool bzr: bugtargetdisplayname Bazaar Bazaar Subversion Plugin
2008-10-26 23:57:34 Martin Pool bzr: bugtargetname bzr bzr-svn
2008-10-26 23:57:34 Martin Pool bzr: statusexplanation
2008-10-26 23:57:34 Martin Pool bzr: title Bug #221060 in Bazaar: "Branch into an init-repo'd --no_trees --rich-root-pack fails." Bug #221060 in Bazaar Subversion Plugin: "Branch into an init-repo'd --no_trees --rich-root-pack fails."
2008-10-30 19:07:47 Jelmer Vernooij bzr-svn: bugtargetdisplayname Bazaar Subversion Plugin Bazaar
2008-10-30 19:07:47 Jelmer Vernooij bzr-svn: bugtargetname bzr-svn bzr
2008-10-30 19:07:47 Jelmer Vernooij bzr-svn: title Bug #221060 in Bazaar Subversion Plugin: "Branch into an init-repo'd --no_trees --rich-root-pack fails." Bug #221060 in Bazaar: "Branch into an init-repo'd --no_trees --rich-root-pack fails."
2008-11-07 10:31:28 Vincent Ladeuil bzr: status New Incomplete
2008-11-07 10:31:28 Vincent Ladeuil bzr: statusexplanation Can you re-try that with a newer bzr version (1.3 is quite old now), I have several python branches from lp:python here and I certainly not encounter that behavior.
2011-01-15 18:52:30 Jelmer Vernooij bzr: status Incomplete Fix Released