# HG changeset patch # User Durham Goode # Date 1488919920 28800 # Node ID 15c998528c366fe955f7a484abc40dbbebf1c4e7 # Parent 167b69ccc62c29579089c6b2939ff05b4c647be7 fsmonitor: remove use of repo.opener This has been deprecated, so we need to switch to the appropriate vfs apis. diff -r 167b69ccc62c -r 15c998528c36 hgext/fsmonitor/state.py --- a/hgext/fsmonitor/state.py Tue Feb 28 15:19:08 2017 +0100 +++ b/hgext/fsmonitor/state.py Tue Mar 07 12:52:00 2017 -0800 @@ -20,7 +20,7 @@ class state(object): def __init__(self, repo): - self._opener = repo.opener + self._vfs = repo.vfs self._ui = repo.ui self._rootdir = pathutil.normasprefix(repo.root) self._lastclock = None @@ -33,7 +33,7 @@ def get(self): try: - file = self._opener('fsmonitor.state', 'rb') + file = self._vfs('fsmonitor.state', 'rb') except IOError as inst: if inst.errno != errno.ENOENT: raise @@ -91,7 +91,7 @@ return try: - file = self._opener('fsmonitor.state', 'wb', atomictemp=True) + file = self._vfs('fsmonitor.state', 'wb', atomictemp=True) except (IOError, OSError): self._ui.warn(_("warning: unable to write out fsmonitor state\n")) return