tests/hghave.py
changeset 30297 d4db88a26ad5
parent 30242 389cbfe63586
child 30441 de48d3a0573a
equal deleted inserted replaced
30296:ab929a174f7b 30297:d4db88a26ad5
   148     re = br'Concurrent Versions System \(CVSNT\) (\d+).(\d+).*\(client/server\)'
   148     re = br'Concurrent Versions System \(CVSNT\) (\d+).(\d+).*\(client/server\)'
   149     return matchoutput('cvsnt --version 2>&1', re)
   149     return matchoutput('cvsnt --version 2>&1', re)
   150 
   150 
   151 @check("darcs", "darcs client")
   151 @check("darcs", "darcs client")
   152 def has_darcs():
   152 def has_darcs():
   153     return matchoutput('darcs --version', br'2\.[2-9]', True)
   153     return matchoutput('darcs --version', br'\b2\.([2-9]|\d{2})', True)
   154 
   154 
   155 @check("mtn", "monotone client (>= 1.0)")
   155 @check("mtn", "monotone client (>= 1.0)")
   156 def has_mtn():
   156 def has_mtn():
   157     return matchoutput('mtn --version', br'monotone', True) and not matchoutput(
   157     return matchoutput('mtn --version', br'monotone', True) and not matchoutput(
   158         'mtn --version', br'monotone 0\.', True)
   158         'mtn --version', br'monotone 0\.', True)