[MERGE] [BUG 363837] Catch _win32_delete_readonly failure to remove file or directory and try to recover

Aaron Bentley aaron at aaronbentley.com
Tue May 5 16:54:24 BST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Maritza Mendez wrote:
> The more I think about this, the more I think that a cure may be worse
> than the problem.  So I am leaning toward...

> bzr would catch the exception, print a polite message
> about the external misbehavior, and just keep going.

I think that this would be fine, so long as it's an opt-in behaviour.
If you do it as an onerror callback, note that problems may cascade,
because failure to delete a file can cause failure to delete its
containing directory.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoAYTAACgkQ0F+nu1YWqI22xQCfWD1jk8v9ZTfqjOPpeR/rjX1D
+FwAnRfngGWiYtVvoQznct2319/6A7HQ
=93my
-----END PGP SIGNATURE-----



More information about the bazaar mailing list