##// END OF EJS Templates
share: convert EOL of hgrc before writing to bytes IO...
Yuya Nishihara -
r35640:e925f33a default
parent child Browse files
Show More
@@ -307,9 +307,9 b' def postshare(sourcerepo, destrepo, book'
307 """
307 """
308 default = defaultpath or sourcerepo.ui.config('paths', 'default')
308 default = defaultpath or sourcerepo.ui.config('paths', 'default')
309 if default:
309 if default:
310 with destrepo.vfs("hgrc", "w", text=True) as fp:
310 template = ('[paths]\n'
311 fp.write("[paths]\n")
311 'default = %s\n')
312 fp.write("default = %s\n" % default)
312 destrepo.vfs.write('hgrc', util.tonativeeol(template % default))
313
313
314 with destrepo.wlock():
314 with destrepo.wlock():
315 if bookmarks:
315 if bookmarks:
General Comments 0
You need to be logged in to leave comments. Login now