[Pkg-bazaar-maint] Bug#635557: bzr-hg: update in Mercurial repository crashes with ReadOnlyError

Ben Finney ben+debian at benfinney.id.au
Tue Jul 26 23:41:18 UTC 2011


Package: bzr-hg
Version: 0.2.0~bzr409-1.1
Severity: normal

Bazaar recognises a Mercurial repository, but crashes when I try to
update it.

I would expect an update to succeed simply because Mercurial can do the
same.

On the other hand, if write operations are not supported, Bazaar should
not crash; instead, a proper explanatory error message should be
emitted.

=====
$ hg clone ssh://hg@bitbucket.org/ned/coveragepy/ coveragepy.hg/
requesting all changes
adding changesets
adding manifests
adding file changes
added 1074 changesets with 2745 changes to 320 files (+3 heads)
updating to branch default
257 files updated, 0 files merged, 0 files removed, 0 files unresolved

$ bzr info
/usr/lib/python2.6/dist-packages/lazr/restfulclient/__init__.py:19: UserWarning: Module paste was already imported from None, but /usr/lib/python2.6/dist-packages is being added to sys.path
  import pkg_resources
Standalone tree (format: hg)
Location:
  branch root: .

Related branches:
  parent branch: ssh://hg@bitbucket.org/ned/coveragepy/

$ bzr update
/usr/lib/python2.6/dist-packages/lazr/restfulclient/__init__.py:19: UserWarning: Module paste was already imported from None, but /usr/lib/python2.6/dist-packages is being added to sys.path
  import pkg_resources
bzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a read only transaction on LockableFiles(hg lock, file:///home/bignose/Projects/python/coverage/coveragepy.hg/)

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 688, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1400, in run
    tree.lock_tree_write()
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 1893, in lock_tree_write
    self._control_files.lock_write()
  File "/usr/lib/python2.6/dist-packages/bzrlib/lockable_files.py", line 181, in lock_write
    raise errors.ReadOnlyError(self)
ReadOnlyError: A write attempt was made in a read only transaction on LockableFiles(hg lock, file:///home/bignose/Projects/python/coverage/coveragepy.hg/)

bzr 2.3.1 on python 2.6.7 (Linux-2.6.39-2-powerpc64-ppc64-with-debian-wheezy-sid)
arguments: ['/usr/bin/bzr', 'update']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
  bash_completion      /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.3.1]
  builddeb             /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [2.7.0dev]
  bzrtools             /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.3.1]
  cvsps_import         /usr/lib/python2.6/dist-packages/bzrlib/plugins/cvsps_import [unknown]
  dbus                 /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1.0dev]
  etckeeper            /usr/lib/python2.6/dist-packages/bzrlib/plugins/etckeeper [unknown]
  fastimport           /usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport [0.11.0dev]
  git                  /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.6.2dev]
  grep                 /usr/lib/python2.6/dist-packages/bzrlib/plugins/grep [0.4.0]
  hg                   /usr/lib/python2.6/dist-packages/bzrlib/plugins/hg [0.2.0dev]
  launchpad            /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.3.1]
  loom                 /usr/lib/python2.6/dist-packages/bzrlib/plugins/loom [2.2.1dev]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.3.1]
  news_merge           /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.3.1]
  pipeline             /usr/lib/python2.6/dist-packages/bzrlib/plugins/pipeline [1.1.0]
  pqm                  /usr/lib/python2.6/dist-packages/bzrlib/plugins/pqm [1.4.0dev]
  search               /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7.0dev]
  stats                /usr/lib/python2.6/dist-packages/bzrlib/plugins/stats [0.1.0]
  svn                  /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.5dev]
  upload               /usr/lib/python2.6/dist-packages/bzrlib/plugins/upload [1.0.1dev]

*** Bazaar has encountered an internal error.  This probably indicates a
    bug in Bazaar.  You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
=====

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (900, 'stable')
Architecture: powerpc (ppc64)

Kernel: Linux 2.6.39-2-powerpc64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.utf8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bzr-hg depends on:
ii  bzr                           2.3.1-2    easy to use distributed version co
ii  mercurial                     1.8.3-1    scalable distributed version contr
ii  python                        2.6.7-1    interactive high-level object-orie
ii  python2.6                     2.6.7-3    An interactive high-level object-o
ii  python2.7                     2.7.2-3    An interactive high-level object-o

bzr-hg recommends no packages.

bzr-hg suggests no packages.

-- no debconf information





More information about the Pkg-bazaar-maint mailing list