Why do I get "file in use" errors on Windows?

Created by Martin Pool on on 2009-07-07
Keywords:
win32 locking

If you get "permission denied: file in use" errors on Windows when Bazaar's trying to manipulate repository-internal files, this is probably caused by a virus scanner or some other process trying to read from those files while Bazaar is using them. If the problem persists, try configuring the scanner not to look inside .bzr directories, which don't contain any executable code.

This error may also occur if you have a stuck bzr process somewhere. Try using the task manager to kill it.

You can also try 'bzr break-lock' in the relevant directory.

See https://answers.launchpad.net/bzr/+question/76196 and
https://bugs.launchpad.net/bzr/+bug/394976