~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-12 12:55:36 UTC
  • mfrom: (5031.1.3 merge-2.1-into-devel)
  • Revision ID: pqm@pqm.ubuntu.com-20100212125536-75ekp8giqbsnunmu
(andrew) Merge lp:bzr/2.1 to lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4372
4372
CaseInsensitiveFilesystemFeature = _CaseInsensitiveFilesystemFeature()
4373
4373
 
4374
4374
 
 
4375
class _CaseSensitiveFilesystemFeature(Feature):
 
4376
 
 
4377
    def _probe(self):
 
4378
        if CaseInsCasePresFilenameFeature.available():
 
4379
            return False
 
4380
        elif CaseInsensitiveFilesystemFeature.available():
 
4381
            return False
 
4382
        else:
 
4383
            return True
 
4384
 
 
4385
    def feature_name(self):
 
4386
        return 'case-sensitive filesystem'
 
4387
 
 
4388
# new coding style is for feature instances to be lowercase
 
4389
case_sensitive_filesystem_feature = _CaseSensitiveFilesystemFeature()
 
4390
 
 
4391
 
4375
4392
# Kept for compatibility, use bzrlib.tests.features.subunit instead
4376
4393
SubUnitFeature = _CompatabilityThunkFeature(
4377
4394
    deprecated_in((2,1,0)),