hgext/inotify/client.py
changeset 12063 516b000fbb7e
parent 11943 2d3cbcace897
child 19140 10103caea69d
equal deleted inserted replaced
12062:c327bfa5e831 12063:516b000fbb7e
    19     Decorator.
    19     Decorator.
    20     Tries to call function, if it fails, try to (re)start inotify server.
    20     Tries to call function, if it fails, try to (re)start inotify server.
    21     Raise QueryFailed if something went wrong
    21     Raise QueryFailed if something went wrong
    22     """
    22     """
    23     def decorated_function(self, *args):
    23     def decorated_function(self, *args):
    24         result = None
       
    25         try:
    24         try:
    26             return function(self, *args)
    25             return function(self, *args)
    27         except (OSError, socket.error), err:
    26         except (OSError, socket.error), err:
    28             autostart = self.ui.configbool('inotify', 'autostart', True)
    27             autostart = self.ui.configbool('inotify', 'autostart', True)
    29 
    28