From patchwork Mon Jun 16 16:39:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4, of, 6] hg: update util.writefile method to use write with vfs in share From: Chinmay Joshi X-Patchwork-Id: 5008 Message-Id: To: mercurial-devel@selenic.com Date: Mon, 16 Jun 2014 22:09:44 +0530 # HG changeset patch # User Chinmay Joshi # Date 1402932774 -19800 # Mon Jun 16 21:02:54 2014 +0530 # Node ID b5da6438d602ea375b4cce2d677ec8cb5ad4c2a2 # Parent c74650d0e88db42859b07e03d4f266eaae91b2a8 hg: update util.writefile method to use write with vfs in share This patch replaces util.writefile() to use rvfs.write(). diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -190,8 +190,8 @@ raise requirements += 'shared\n' - util.writefile(os.path.join(roothg, 'requires'), requirements) - util.writefile(os.path.join(roothg, 'sharedpath'), sharedpath) + rvfs.write('requires', requirements) + rvfs.write('sharedpath', sharedpath) r = repository(ui, dstvfs.base)