hgext/convert/convcmd.py
changeset 36148 0f9e52f900c4
parent 36133 6df206ef4b10
child 36329 93943eef696f
--- a/hgext/convert/convcmd.py	Sun Feb 11 18:34:22 2018 -0800
+++ b/hgext/convert/convcmd.py	Tue Feb 13 21:52:51 2018 +0900
@@ -411,7 +411,8 @@
             self.ui.status(_('writing author map file %s\n') % authorfile)
             ofile = open(authorfile, 'wb+')
             for author in self.authors:
-                ofile.write("%s=%s\n" % (author, self.authors[author]))
+                ofile.write(util.tonativeeol("%s=%s\n"
+                                             % (author, self.authors[author])))
             ofile.close()
 
     def readauthormap(self, authorfile):