tests/hghave
changeset 16683 525fdb738975
parent 16369 e14d7805845d
child 16684 e617876fe82d
equal deleted inserted replaced
16676:654b9e1966f7 16683:525fdb738975
   163         return True
   163         return True
   164     except ImportError:
   164     except ImportError:
   165         return False
   165         return False
   166 
   166 
   167 def has_p4():
   167 def has_p4():
   168     return matchoutput('p4 -V', r'Rev\. P4/') and matchoutput('p4d -V', r'Rev\. P4D/')
   168     return (matchoutput('p4 -V', r'Rev\. P4/') and
       
   169             matchoutput('p4d -V', r'Rev\. P4D/'))
   169 
   170 
   170 def has_symlink():
   171 def has_symlink():
   171     if not hasattr(os, "symlink"):
   172     if not hasattr(os, "symlink"):
   172         return False
   173         return False
   173     name = tempfile.mktemp(dir=".", prefix='hg-checklink-')
   174     name = tempfile.mktemp(dir=".", prefix='hg-checklink-')