~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Martin Pool
  • Date: 2010-02-18 05:38:14 UTC
  • mfrom: (4634.132.2 2.0)
  • mto: (4634.134.1 2.0)
  • mto: This revision was merged to the branch mainline in revision 5069.
  • Revision ID: mbp@sourcefrog.net-20100218053814-fw8opjs6acp5lvs0
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007, 2008, 2009 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
4060
4060
CaseInsensitiveFilesystemFeature = _CaseInsensitiveFilesystemFeature()
4061
4061
 
4062
4062
 
 
4063
class _CaseSensitiveFilesystemFeature(Feature):
 
4064
 
 
4065
    def _probe(self):
 
4066
        if CaseInsCasePresFilenameFeature.available():
 
4067
            return False
 
4068
        elif CaseInsensitiveFilesystemFeature.available():
 
4069
            return False
 
4070
        else:
 
4071
            return True
 
4072
 
 
4073
    def feature_name(self):
 
4074
        return 'case-sensitive filesystem'
 
4075
 
 
4076
# new coding style is for feature instances to be lowercase
 
4077
case_sensitive_filesystem_feature = _CaseSensitiveFilesystemFeature()
 
4078
 
 
4079
 
4063
4080
class _SubUnitFeature(Feature):
4064
4081
    """Check if subunit is available."""
4065
4082