bzr 1.3 fails with a ValueError

Bug #211209 reported by Carlos Perelló Marín on 2008-04-03
4
Affects Status Importance Assigned to Milestone
Bazaar
Undecided
Unassigned
bzr (Ubuntu)
Undecided
Unassigned

Bug Description

I just got Bazaar 1.3 installed in Ubuntu Hardy and it breaks every time I try to use it with the launchpad tree. I tried bzr pull, merge and branch and all commands failed with the same error:

carlos@aragorn:~/Work/Canonical/trivial$ bzr pull
Using saved location: bzr+ssh://xxxxxxxxxxxxxxxxx
bzr: ERROR: exceptions.ValueError: invalid literal for int() with base 10: '= RESTful Web Services =\n'

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 652, in run
    possible_transports=possible_transports)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 1570, in pull
    possible_transports=possible_transports)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1714, in pull
    run_hooks=run_hooks)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1513, in pull
    self.update_revisions(source, stop_revision, overwrite=overwrite)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1465, in update_revisions
    self.fetch(other, stop_revision)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 266, in fetch
    pb=nested_pb)
  File "/usr/lib/python2.5/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.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 2963, in fetch
    pb=pb, find_ghosts=find_ghosts)
  File "/usr/lib/python2.5/site-packages/bzrlib/fetch.py", line 109, in __init__
    self.__fetch()
  File "/usr/lib/python2.5/site-packages/bzrlib/fetch.py", line 139, in __fetch
    self._fetch_everything_for_search(search, pp)
  File "/usr/lib/python2.5/site-packages/bzrlib/fetch.py", line 418, in _fetch_everything_for_search
    self.to_repository.insert_data_stream(data_stream)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 860, in insert_data_stream
    (format, data_list, reader_func))
  File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 803, in insert_data_stream
    self.join(source)
  File "/usr/lib/python2.5/site-packages/bzrlib/versionedfile.py", line 421, in join
    ignore_missing)
  File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 2704, in join
    return self._copy_texts(pb, msg, version_ids, ignore_missing)
  File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 2683, in _copy_texts
    self.source.get_lines(version),
  File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 1099, in get_lines
    return self.get_line_list([version_id])[0]
  File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 1138, in get_line_list
    text_map, content_map = self._get_content_maps(version_ids)
  File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 1179, in _get_content_maps
    copy_base_content=multiple_versions)
  File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 308, in parse_record
    delta = self.parse_line_delta(record, version_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 456, in parse_line_delta
    return list(self.parse_line_delta_iter(lines, version_id))
  File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 451, in parse_line_delta_iter
    start, end, c = [int(n) for n in header.split(',')]
ValueError: invalid literal for int() with base 10: '= RESTful Web Services =\n'

bzr 1.3 on python 2.5.2.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'pull']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'es_ES.UTF-8'
plugins:
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  lpreview /home/carlos/.bazaar/plugins/lpreview [unknown]
  pqm /usr/lib/python2.5/site-packages/bzrlib/plugins/pqm [1.0.0dev0]

I tried executing it with LC_ALL=C but even in that case the output is exactly the same.

I had to revert to the previous version in Hardy 1.2~rc1-1build2 to be able to keep using bzr.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers