mq: directly use repo.vfs.join
The 'repo.join' method is about to be deprecated.
--- a/hgext/mq.py Wed Mar 08 16:52:06 2017 -0800
+++ b/hgext/mq.py Wed Mar 08 16:52:16 2017 -0800
@@ -2920,7 +2920,7 @@
opts = fixkeepchangesopts(ui, opts)
if opts.get('merge'):
if opts.get('name'):
- newpath = repo.join(opts.get('name'))
+ newpath = repo.vfs.join(opts.get('name'))
else:
newpath, i = lastsavename(q.path)
if not newpath:
@@ -2960,7 +2960,7 @@
opts = fixkeepchangesopts(ui, opts)
localupdate = True
if opts.get('name'):
- q = queue(ui, repo.baseui, repo.path, repo.join(opts.get('name')))
+ q = queue(ui, repo.baseui, repo.path, repo.vfs.join(opts.get('name')))
ui.warn(_('using patch queue: %s\n') % q.path)
localupdate = False
else:
@@ -3314,9 +3314,9 @@
def _queuedir(name):
if name == 'patches':
- return repo.join('patches')
+ return repo.vfs.join('patches')
else:
- return repo.join('patches-' + name)
+ return repo.vfs.join('patches-' + name)
def _validname(name):
for n in name: