Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 31312:7eb53603744b
vfs: use repo.vfs.rename
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sat, 11 Mar 2017 11:04:14 -0800 |
parents | 8908f985570c |
children | f897a088377c |
line wrap: on
line diff
--- 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)