tests/hghave
changeset 14550 2425a3536396
parent 14432 0969d91fad5c
child 14927 2aa3e07b2f07
equal deleted inserted replaced
14549:48ec0763afbb 14550:2425a3536396
    50 def has_darcs():
    50 def has_darcs():
    51     return matchoutput('darcs --version', r'2\.[2-9]', True)
    51     return matchoutput('darcs --version', r'2\.[2-9]', True)
    52 
    52 
    53 def has_mtn():
    53 def has_mtn():
    54     return matchoutput('mtn --version', r'monotone', True) and not matchoutput(
    54     return matchoutput('mtn --version', r'monotone', True) and not matchoutput(
    55         'mtn --version', r'monotone 0\.(\d|[12]\d|3[01])[^\d]', True)
    55         'mtn --version', r'monotone 0\.', True)
    56 
    56 
    57 def has_eol_in_paths():
    57 def has_eol_in_paths():
    58     try:
    58     try:
    59         fd, path = tempfile.mkstemp(prefix=tempprefix, suffix='\n\r')
    59         fd, path = tempfile.mkstemp(prefix=tempprefix, suffix='\n\r')
    60         os.close(fd)
    60         os.close(fd)