new status output

Aaron Bentley aaron.bentley at utoronto.ca
Wed Oct 26 14:41:57 BST 2005


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

Jan Hudec wrote:
> There could be a '--compatibility' option, that would mean 'act as if
> os.name was this'. So: --compatibility=posix for the scripting interface
> and --compatibility=nt for the windows one.

At the risk of overengineering, maybe we should
1. add a Platform object to osutils.  It would have members describing
the various platform features.
2. instantiate an osutils.platform global at import time (it's cheap)
3. provide equivalent-sematincs versions of all the functions that vary
by platform.  (This is easier for us, because we only need specific
semantics.  Ultimately don't care whether we create a hard link or copy
a file, for example.)
4. override osutils.platform as needed.  (Run scripts/tests on Unix with
osutils.platform=Win32Platform?)

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

iD8DBQFDX4el0F+nu1YWqI0RAoBdAJ9+j3eWIJ7wMhH1MgT1MjR3jZXOCQCfWF2j
azXVkSdmJXD2qOz+orYGDhk=
=npA9
-----END PGP SIGNATURE-----




More information about the bazaar mailing list