--- a/hgext/mq.py Sat Mar 11 11:02:25 2017 -0800
+++ b/hgext/mq.py Sat Mar 11 11:04:14 2017 -0800
@@ -3339,7 +3339,7 @@
continue
fh.write('%s\n' % (queue,))
fh.close()
- util.rename(repo.join('patches.queues.new'), repo.join(_allqueues))
+ repo.vfs.rename('patches.queues.new', _allqueues)
if not name or opts.get('list') or opts.get('active'):
current = _getcurrent()
@@ -3392,7 +3392,7 @@
else:
fh.write('%s\n' % (queue,))
fh.close()
- util.rename(repo.join('patches.queues.new'), repo.join(_allqueues))
+ repo.vfs.rename('patches.queues.new', _allqueues)
_setactivenocheck(name)
elif opts.get('delete'):
_delete(name)