mercurial/subrepo.py
changeset 23877 7cc77030c557
parent 23679 dd1e73c4be13
child 23885 9994f45ba714
--- a/mercurial/subrepo.py	Wed Jan 14 20:29:47 2015 -0800
+++ b/mercurial/subrepo.py	Thu Jan 15 23:17:12 2015 +0100
@@ -614,7 +614,7 @@
             if defpath != defpushpath:
                 addpathconfig('default-push', defpushpath)
 
-            fp = self._repo.opener("hgrc", "w", text=True)
+            fp = self._repo.vfs("hgrc", "w", text=True)
             try:
                 fp.write(''.join(lines))
             finally: