##// END OF EJS Templates
py3: make sure we open the file to write in bytes mode...
Pulkit Goyal -
r35605:f2f0a777 default
parent child Browse files
Show More
@@ -811,7 +811,7 b' class hgsubrepo(abstractsubrepo):'
811 with self._repo.lock():
811 with self._repo.lock():
812 storehash = list(self._calcstorehash(remotepath))
812 storehash = list(self._calcstorehash(remotepath))
813 vfs = self._cachestorehashvfs
813 vfs = self._cachestorehashvfs
814 vfs.writelines(cachefile, storehash, mode='w', notindexed=True)
814 vfs.writelines(cachefile, storehash, mode='wb', notindexed=True)
815
815
816 def _getctx(self):
816 def _getctx(self):
817 '''fetch the context for this subrepo revision, possibly a workingctx
817 '''fetch the context for this subrepo revision, possibly a workingctx
@@ -841,7 +841,7 b' class hgsubrepo(abstractsubrepo):'
841 if defpath != defpushpath:
841 if defpath != defpushpath:
842 addpathconfig('default-push', defpushpath)
842 addpathconfig('default-push', defpushpath)
843
843
844 fp = self._repo.vfs("hgrc", "w", text=True)
844 fp = self._repo.vfs("hgrc", "wb", text=True)
845 try:
845 try:
846 fp.write(''.join(lines))
846 fp.write(''.join(lines))
847 finally:
847 finally:
General Comments 0
You need to be logged in to leave comments. Login now