Mercurial > hg
comparison tests/hghave @ 14550:2425a3536396
tests: fix updated monotone version requirement
0969d91fad5c only updated the comment, not the actual check.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 10 Jun 2011 16:50:45 +0200 |
parents | 0969d91fad5c |
children | 2aa3e07b2f07 |
comparison
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) |