equal
deleted
inserted
replaced
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 |