tests/hghave
changeset 7773 607de5bd3578
parent 7429 dbc40381620e
child 7823 11efa41037e2
equal deleted inserted replaced
7772:88887054d277 7773:607de5bd3578
    25     return matchoutput('baz --version 2>&1', r'baz Bazaar version')
    25     return matchoutput('baz --version 2>&1', r'baz Bazaar version')
    26 
    26 
    27 def has_bzr():
    27 def has_bzr():
    28     try:
    28     try:
    29         import bzrlib
    29         import bzrlib
    30         return True
    30         return bzrlib.__doc__ != None
    31     except ImportError:
    31     except ImportError:
    32         return False
    32         return False
    33 
    33 
    34 def has_cvs():
    34 def has_cvs():
    35     re = r'Concurrent Versions System.*?server'
    35     re = r'Concurrent Versions System.*?server'