I can't reproduce this with general handling of OSError and IOError, in fact in some cases we seem to get too many filenames:
% ./bzr st /tmp/a/a/ bzr: ERROR: Permission denied: "/tmp/a/a/.bzr/branch-format": [Errno 13] Permission denied: u'/tmp/a/a/.bzr/branch-format'
It might be specific to OSError and IOError raised from inside the dirstate helpers.
I can't reproduce this with general handling of OSError and IOError, in fact in some cases we seem to get too many filenames:
% ./bzr st /tmp/a/a/ a/.bzr/ branch- format" : [Errno 13] Permission denied: u'/tmp/ a/a/.bzr/ branch- format'
bzr: ERROR: Permission denied: "/tmp/a/
It might be specific to OSError and IOError raised from inside the dirstate helpers.