comparison mercurial/subrepo.py @ 23877:7cc77030c557

localrepo: remove all external users of localrepo.opener This change touches every module in which repository.opener was being used, and changes it for the equivalent repository.vfs. This is meant to make it easier to split the repository.vfs into several separate vfs. It should now be possible to remove localrepo.opener.
author Angel Ezquerra <angel.ezquerra@gmail.com>
date Thu, 15 Jan 2015 23:17:12 +0100
parents dd1e73c4be13
children 9994f45ba714
comparison
equal deleted inserted replaced
23876:48fd1dfb99aa 23877:7cc77030c557
612 defpushpath = _abssource(self._repo, True, abort=False) 612 defpushpath = _abssource(self._repo, True, abort=False)
613 addpathconfig('default', defpath) 613 addpathconfig('default', defpath)
614 if defpath != defpushpath: 614 if defpath != defpushpath:
615 addpathconfig('default-push', defpushpath) 615 addpathconfig('default-push', defpushpath)
616 616
617 fp = self._repo.opener("hgrc", "w", text=True) 617 fp = self._repo.vfs("hgrc", "w", text=True)
618 try: 618 try:
619 fp.write(''.join(lines)) 619 fp.write(''.join(lines))
620 finally: 620 finally:
621 fp.close() 621 fp.close()
622 622