Mercurial > hg
comparison tests/hghave @ 6998:ddfcefab8b97
merge with -stable
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sat, 06 Sep 2008 17:04:01 +0200 |
parents | 2134d6c09432 fecf060f32a1 |
children | 209ef5f3534c |
comparison
equal
deleted
inserted
replaced
6992:4e62be0208d3 | 6998:ddfcefab8b97 |
---|---|
71 s2 = os.stat(p2) | 71 s2 = os.stat(p2) |
72 return s2 == s1 | 72 return s2 == s1 |
73 except: | 73 except: |
74 return False | 74 return False |
75 finally: | 75 finally: |
76 os.remove(path) | 76 os.remove(path) |
77 | |
78 def has_inotify(): | |
79 try: | |
80 import hgext.inotify.linux.watcher | |
81 return True | |
82 except ImportError: | |
83 return False | |
77 | 84 |
78 def has_fifo(): | 85 def has_fifo(): |
79 return hasattr(os, "mkfifo") | 86 return hasattr(os, "mkfifo") |
80 | 87 |
81 def has_hotshot(): | 88 def has_hotshot(): |
146 "execbit": (has_executablebit, "executable bit"), | 153 "execbit": (has_executablebit, "executable bit"), |
147 "fifo": (has_fifo, "named pipes"), | 154 "fifo": (has_fifo, "named pipes"), |
148 "git": (has_git, "git command line client"), | 155 "git": (has_git, "git command line client"), |
149 "hotshot": (has_hotshot, "python hotshot module"), | 156 "hotshot": (has_hotshot, "python hotshot module"), |
150 "icasefs": (has_icasefs, "case insensitive file system"), | 157 "icasefs": (has_icasefs, "case insensitive file system"), |
158 "inotify": (has_inotify, "inotify extension support"), | |
151 "lsprof": (has_lsprof, "python lsprof module"), | 159 "lsprof": (has_lsprof, "python lsprof module"), |
152 "mtn": (has_mtn, "monotone client (> 0.31)"), | 160 "mtn": (has_mtn, "monotone client (> 0.31)"), |
161 "pygments": (has_pygments, "Pygments source highlighting library"), | |
153 "svn": (has_svn, "subversion client and admin tools"), | 162 "svn": (has_svn, "subversion client and admin tools"), |
154 "svn-bindings": (has_svn_bindings, "subversion python bindings"), | 163 "svn-bindings": (has_svn_bindings, "subversion python bindings"), |
155 "symlink": (has_symlink, "symbolic links"), | 164 "symlink": (has_symlink, "symbolic links"), |
156 "tla": (has_tla, "GNU Arch tla client"), | 165 "tla": (has_tla, "GNU Arch tla client"), |
157 "unix-permissions": (has_unix_permissions, "unix-style permissions"), | 166 "unix-permissions": (has_unix_permissions, "unix-style permissions"), |
158 "pygments": (has_pygments, "Pygments source highlighting library"), | |
159 } | 167 } |
160 | 168 |
161 def list_features(): | 169 def list_features(): |
162 for name, feature in checks.iteritems(): | 170 for name, feature in checks.iteritems(): |
163 desc = feature[1] | 171 desc = feature[1] |