This is the output of the last of your options:
C:\work\workspace4>set BZR_PDB=1 C:\work\workspace4>bzr st bzr: ERROR: [Errno 13] Permission denied **** entering debugger > c:\work\workspace4\bzrlib\osutils.pyo(673)size_sha_file() (Pdb) p locals() {'s': <sha1 HASH object @ 0237B6C0>, 'BUFSIZE': 131072, 'f': <closed file u'C:/work/workspace4//.metadata/.plugins/org.eclipse.rtsc.xdctools.model/XDCModel.log.lck', mode 'rb' at 0x023FE0D0>, 'size': 0} (Pdb)
This is the output of the last of your options:
C:\work\ workspace4> set BZR_PDB=1 workspace4> bzr st workspace4\ bzrlib\ osutils. pyo(673) size_sha_ file() workspace4/ /.metadata/ .plugins/ org.eclipse. rtsc.xdctools. model/XDCModel. log.lck' , mode 'rb' at 0x023FE0D0>, 'size': 0}
C:\work\
bzr: ERROR: [Errno 13] Permission denied
**** entering debugger
> c:\work\
(Pdb) p locals()
{'s': <sha1 HASH object @ 0237B6C0>, 'BUFSIZE': 131072, 'f': <closed file u'C:/work/
(Pdb)