tests/hghave.py
changeset 1137 2d9daef1e473
parent 1136 294cea906d3a
child 1190 ecb744c2a199
equal deleted inserted replaced
1134:183d7e3d7ce8 1137:2d9daef1e473
   150         return True
   150         return True
   151     except ImportError:
   151     except ImportError:
   152         return False
   152         return False
   153 
   153 
   154 def getsvnversion():
   154 def getsvnversion():
   155     m = matchoutput('svn --version 2>&1', r'^svn,\s+version\s+(\d+)\.(\d+)')
   155     m = matchoutput('svn --version --quiet 2>&1', r'^(\d+)\.(\d+)')
   156     if not m:
   156     if not m:
   157         return (0, 0)
   157         return (0, 0)
   158     return (int(m.group(1)), int(m.group(2)))
   158     return (int(m.group(1)), int(m.group(2)))
   159 
   159 
   160 def has_svn15():
   160 def has_svn15():