diff hgext/mq.py @ 31216:21fa3d3688f3

vfs: replace 'scmutil.opener' usage with 'scmutil.vfs' The 'vfs' class is the first class citizen for years. We remove all usages of the older API. This will let us remove the old API eventually.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 02 Mar 2017 03:52:36 +0100
parents 861b070d92da
children 816bc3b35bac
line wrap: on
line diff
--- a/hgext/mq.py	Tue Mar 07 12:52:00 2017 -0800
+++ b/hgext/mq.py	Thu Mar 02 03:52:36 2017 +0100
@@ -434,7 +434,7 @@
         except IOError:
             curpath = os.path.join(path, 'patches')
         self.path = patchdir or curpath
-        self.opener = scmutil.opener(self.path)
+        self.opener = scmutil.vfs(self.path)
         self.ui = ui
         self.baseui = baseui
         self.applieddirty = False