tests/hghave.py
branchstable
changeset 1136 294cea906d3a
parent 1133 82f74372516e
child 1190 ecb744c2a199
equal deleted inserted replaced
1135:7c026ccf4e1a 1136:294cea906d3a
   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():