hgext/convert/hg.py
changeset 36148 0f9e52f900c4
parent 36134 2a28bdb63f05
child 36340 06464d1ce6cd
--- a/hgext/convert/hg.py	Sun Feb 11 18:34:22 2018 -0800
+++ b/hgext/convert/hg.py	Tue Feb 13 21:52:51 2018 +0900
@@ -626,7 +626,7 @@
     def converted(self, rev, destrev):
         if self.convertfp is None:
             self.convertfp = open(self.repo.vfs.join('shamap'), 'ab')
-        self.convertfp.write('%s %s\n' % (destrev, rev))
+        self.convertfp.write(util.tonativeeol('%s %s\n' % (destrev, rev)))
         self.convertfp.flush()
 
     def before(self):