hgext/fsmonitor/watchmanclient.py
changeset 50928 d718eddf01d9
parent 48946 642e31cb55f0
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
    67         if self._watchmanclient is not None:
    67         if self._watchmanclient is not None:
    68             self._watchmanclient.setTimeout(timeout)
    68             self._watchmanclient.setTimeout(timeout)
    69 
    69 
    70     def getcurrentclock(self):
    70     def getcurrentclock(self):
    71         result = self.command(b'clock')
    71         result = self.command(b'clock')
    72         if not util.safehasattr(result, 'clock'):
    72         if not hasattr(result, 'clock'):
    73             raise Unavailable(
    73             raise Unavailable(
    74                 b'clock result is missing clock value', invalidate=True
    74                 b'clock result is missing clock value', invalidate=True
    75             )
    75             )
    76         return result.clock
    76         return result.clock
    77 
    77