[PATCH 5 of 5] fsmonitor: don't write out state if identity has changed (issue5581)
Siddharth Agarwal
sid at less-broken.com
Mon Jun 12 19:25:03 EDT 2017
On 6/12/17 3:36 PM, Siddharth Agarwal wrote:
> + # Read the identity from the file on disk rather than from the open file
> + # pointer below, because the latter is actually a brand new file.
> + identity = util.filestat.frompath(self._vfs.join('fsmonitor.state'))
> + if identity != self._identity:
> + self._ui.debug('skip updating fsmonitor.state: identity mismatch\n')
> + return
> + else:
> + self._ui.debug('identity new: %s %s old: %s %s' % (identity, identity.stat, self._identity, self._identity.stat))
Whoops, left these last two lines in by accident. Happy to send a V2, or
if someone can fix it inflight that would be great.
More information about the Mercurial-devel
mailing list