tests/hghave
branchstable
changeset 1069 4e0cef7a70cf
parent 1063 0e3b1a8a243c
child 1070 838e4146e763
equal deleted inserted replaced
1068:459c0537273b 1069:4e0cef7a70cf
   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-')