[PATCH STABLE?] inotify: show the exact command used to start the server

Greg Ward greg-hg at gerg.ca
Fri Aug 13 12:17:14 CDT 2010


# HG changeset patch
# User Greg Ward <greg-hg at gerg.ca>
# Date 1281719794 14400
# Branch stable
# Node ID 3986e54e7ae9c9b43f40df4d6617ea8c22c7ae95
# Parent  00f8e78376685c4f2f22ee1a07e757618b30f94c
inotify: show the exact command used to start the server

diff --git a/hgext/inotify/client.py b/hgext/inotify/client.py
--- a/hgext/inotify/client.py
+++ b/hgext/inotify/client.py
@@ -32,7 +32,6 @@
                                'socket; removing it\n'))
                 os.unlink(os.path.join(self.root, '.hg', 'inotify.sock'))
             if err[0] in (errno.ECONNREFUSED, errno.ENOENT) and autostart:
-                self.ui.debug('(starting inotify server)\n')
                 try:
                     try:
                         server.start(self.ui, self.dirstate, self.root,
diff --git a/hgext/inotify/server.py b/hgext/inotify/server.py
--- a/hgext/inotify/server.py
+++ b/hgext/inotify/server.py
@@ -484,5 +484,6 @@
 
     appendpid = ui.configbool('inotify', 'appendpid', False)
 
+    ui.debug('starting inotify server: %s\n' % ' '.join(runargs))
     cmdutil.service(opts, initfn=service.init, runfn=service.run,
                     logfile=logfile, runargs=runargs, appendpid=appendpid)


More information about the Mercurial-devel mailing list