Comment 1 for bug 319374

Revision history for this message
Andrew Bennetts (spiv) wrote :

I can reproduce this. Here's the traceback from the log file:

4.160 Traceback (most recent call last):
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/andrew/code/bzr/bzrlib/builtins.py", line 3444, in run
    tree.lock_write()
  File "/home/andrew/code/bzr/bzrlib/workingtree_4.py", line 628, in lock_write
    self.branch.lock_write()
  File "/home/andrew/code/bzr/bzrlib/branch.py", line 1667, in lock_write
    token = self.control_files.lock_write(token=token)
  File "/home/andrew/code/bzr/bzrlib/lockable_files.py", line 259, in lock_write
    token_from_lock = self._lock.lock_write(token=token)
  File "/home/andrew/code/bzr/bzrlib/lockdir.py", line 576, in lock_write
    return self.wait_lock()
  File "/home/andrew/code/bzr/bzrlib/lockdir.py", line 500, in wait_lock
    return self.attempt_lock()
  File "/home/andrew/code/bzr/bzrlib/lockdir.py", line 461, in attempt_lock
    result = self._attempt_lock()
  File "/home/andrew/code/bzr/bzrlib/lockdir.py", line 226, in _attempt_lock
    raise LockFailed(self, e)
LockFailed: Cannot lock LockDir(http://bazaar-vcs.org/bzr/bzr.dev/.bzr/branch/lock): Transport operation not possible: http does not support mkdir()

I think bzr revert shouldn't be write-locking the branch, just the tree.