bzr mv dies when using a checkout over http://

Bug #216541 reported by Andrew McClain
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Robert Collins

Bug Description

Executing bzr mv on a local checkout fails. No commit or push is attempted.

Steps to reproduce:

bzr checkout --lightweight http://sample.com/trunk /test/foo
bzr mv /test/foo/* /test
bzr: ERROR: Cannot lock LockDir(http://sample.com/trunk/.bzr/branch/lock): Transport operation not possible: http does not support mkdir()

This is a regression from 1.2

Revision history for this message
Martin Albisetti (beuno) wrote :

Thanks for the report.
What version of bzr are you testing this with?

Revision history for this message
Martin Pool (mbp) wrote :

I tried to reproduce this:

mbp@grace% bzr checkout --lightweight readonly+file:///home/mbp/bzr/trunk/ co
mbp@grace% bzr checkout --lightweight readonly+file:///home/mbp/bzr/trunk/ co/2
mbp@grace% cd co
mbp@grace% bzr mv 2/README foo
bzr: ERROR: foo is not in the same branch as 2/README

This seems like a reasonable error to get here.

If you can still reproduce this, could you please add to your recipe an explanation of where /test came from, and the traceback from ~/.bzr.log.

Changed in bzr:
status: New → Incomplete
Revision history for this message
Robert Collins (lifeless) wrote :

  /home/robertc/source/baz/bzr-test-fixes/bzrlib/builtins.py(753)run()
-> tree.lock_write()
  /home/robertc/source/baz/bzr-test-fixes/bzrlib/workingtree_4.py(642)lock_write()
-> self.branch.lock_write()
  /home/robertc/source/baz/bzr-test-fixes/bzrlib/branch.py(2102)lock_write()

We need to use lock_tree_write in cmd_mv.

Changed in bzr:
status: Incomplete → Confirmed
Changed in bzr:
assignee: nobody → Robert Collins (lifeless)
status: Confirmed → Fix Committed
Changed in bzr:
milestone: none → 1.18
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.