~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-01 20:24:03 UTC
  • mfrom: (1551.10.4 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070201202403-7e92ef4d6842ba85
Treat Permission Denied as a lock failure, not lock contention

Show diffs side-by-side

added added

removed removed

Lines of Context:
915
915
    return sys.platform != "win32"
916
916
 
917
917
 
 
918
def supports_posix_readonly():
 
919
    """Return True if 'readonly' has POSIX semantics, False otherwise.
 
920
 
 
921
    Notably, a win32 readonly file cannot be deleted, unlike POSIX where the
 
922
    directory controls creation/deletion, etc.
 
923
 
 
924
    And under win32, readonly means that the directory itself cannot be
 
925
    deleted.  The contents of a readonly directory can be changed, unlike POSIX
 
926
    where files in readonly directories cannot be added, deleted or renamed.
 
927
    """
 
928
    return sys.platform != "win32"
 
929
 
 
930
 
918
931
def set_or_unset_env(env_variable, value):
919
932
    """Modify the environment, setting or removing the env_variable.
920
933