##// END OF EJS Templates
subrepo: convert EOL of hgrc before writing to bytes IO...
Yuya Nishihara -
r35639:38649e2f default
parent child Browse files
Show More
@@ -841,11 +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", "wb", text=True)
844 self._repo.vfs.write('hgrc', util.tonativeeol(''.join(lines)))
845 try:
846 fp.write(''.join(lines))
847 finally:
848 fp.close()
849
845
850 @annotatesubrepoerror
846 @annotatesubrepoerror
851 def add(self, ui, match, prefix, explicitonly, **opts):
847 def add(self, ui, match, prefix, explicitonly, **opts):
General Comments 0
You need to be logged in to leave comments. Login now