tests/hghave.py
changeset 28880 f74eed3115fd
parent 28796 08a686a4a0a2
child 28972 aa927b0a5b87
equal deleted inserted replaced
28879:8c1759a2bdf4 28880:f74eed3115fd
   121         import bzrlib
   121         import bzrlib
   122         return (bzrlib.__doc__ is not None
   122         return (bzrlib.__doc__ is not None
   123                 and bzrlib.version_info[:2] >= (int(major), int(minor)))
   123                 and bzrlib.version_info[:2] >= (int(major), int(minor)))
   124     except ImportError:
   124     except ImportError:
   125         return False
   125         return False
       
   126 
       
   127 @check("chg", "running with chg")
       
   128 def has_chg():
       
   129     return 'CHGHG' in os.environ
   126 
   130 
   127 @check("cvs", "cvs client/server")
   131 @check("cvs", "cvs client/server")
   128 def has_cvs():
   132 def has_cvs():
   129     re = r'Concurrent Versions System.*?server'
   133     re = r'Concurrent Versions System.*?server'
   130     return matchoutput('cvs --version 2>&1', re) and not has_msys()
   134     return matchoutput('cvs --version 2>&1', re) and not has_msys()