tests/hghave
branchstable
changeset 1070 838e4146e763
parent 1069 4e0cef7a70cf
child 1071 f0ce3dcd5c87
equal deleted inserted replaced
1069:4e0cef7a70cf 1070:838e4146e763
    29     return matchoutput('baz --version 2>&1', r'baz Bazaar version')
    29     return matchoutput('baz --version 2>&1', r'baz Bazaar version')
    30 
    30 
    31 def has_bzr():
    31 def has_bzr():
    32     try:
    32     try:
    33         import bzrlib
    33         import bzrlib
    34         return bzrlib.__doc__ != None
    34         return bzrlib.__doc__ is not None
    35     except ImportError:
    35     except ImportError:
    36         return False
    36         return False
    37 
    37 
    38 def has_bzr114():
    38 def has_bzr114():
    39     try:
    39     try:
    40         import bzrlib
    40         import bzrlib
    41         return (bzrlib.__doc__ != None
    41         return (bzrlib.__doc__ is not None
    42                 and bzrlib.version_info[:2] >= (1, 14))
    42                 and bzrlib.version_info[:2] >= (1, 14))
    43     except ImportError:
    43     except ImportError:
    44         return False
    44         return False
    45 
    45 
    46 def has_cvs():
    46 def has_cvs():