comparison 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
comparison
equal deleted inserted replaced
31215:15c998528c36 31216:21fa3d3688f3
432 else: 432 else:
433 curpath = os.path.join(path, 'patches-' + cur) 433 curpath = os.path.join(path, 'patches-' + cur)
434 except IOError: 434 except IOError:
435 curpath = os.path.join(path, 'patches') 435 curpath = os.path.join(path, 'patches')
436 self.path = patchdir or curpath 436 self.path = patchdir or curpath
437 self.opener = scmutil.opener(self.path) 437 self.opener = scmutil.vfs(self.path)
438 self.ui = ui 438 self.ui = ui
439 self.baseui = baseui 439 self.baseui = baseui
440 self.applieddirty = False 440 self.applieddirty = False
441 self.seriesdirty = False 441 self.seriesdirty = False
442 self.added = [] 442 self.added = []