inotify: auto-start by default when enabled
authorMatt Mackall <mpm@selenic.com>
Wed, 22 Oct 2008 19:40:29 -0500
changeset 7218 1bd7f90465b3
parent 7217 9fa2f8dcb869
child 7219 1f6d2e487135
inotify: auto-start by default when enabled
hgext/inotify/__init__.py
tests/test-inotify-issue1208.out
--- a/hgext/inotify/__init__.py	Wed Oct 22 17:41:41 2008 -0500
+++ b/hgext/inotify/__init__.py	Wed Oct 22 19:40:29 2008 -0500
@@ -64,7 +64,7 @@
                                    'removing it)\n'))
                     os.unlink(repo.join('inotify.sock'))
                 if err[0] in (errno.ECONNREFUSED, errno.ENOENT) and \
-                        ui.configbool('inotify', 'autostart'):
+                        ui.configbool('inotify', 'autostart', True):
                     query = None
                     ui.debug(_('(starting inotify server)\n'))
                     try:
--- a/tests/test-inotify-issue1208.out	Wed Oct 22 17:41:41 2008 -0500
+++ b/tests/test-inotify-issue1208.out	Wed Oct 22 19:40:29 2008 -0500
@@ -1,5 +1,5 @@
 % fail
-failed to contact inotify server: No such file or directory
+could not talk to new inotify server: No such file or directory
 abort: could not start server: File exists
 % inserve
 % status