equal
deleted
inserted
replaced
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-') |