hgext/fsmonitor/watchmanclient.py
changeset 43115 4aa72cdf616f
parent 43077 687b865b95ad
child 43385 6469c23a40a2
equal deleted inserted replaced
43114:8197b395710e 43115:4aa72cdf616f
    59         if self._watchmanclient is not None:
    59         if self._watchmanclient is not None:
    60             self._watchmanclient.setTimeout(timeout)
    60             self._watchmanclient.setTimeout(timeout)
    61 
    61 
    62     def getcurrentclock(self):
    62     def getcurrentclock(self):
    63         result = self.command(b'clock')
    63         result = self.command(b'clock')
    64         if not util.safehasattr(result, b'clock'):
    64         if not util.safehasattr(result, 'clock'):
    65             raise Unavailable(
    65             raise Unavailable(
    66                 b'clock result is missing clock value', invalidate=True
    66                 b'clock result is missing clock value', invalidate=True
    67             )
    67             )
    68         return result.clock
    68         return result.clock
    69 
    69