hgext/convert/convcmd.py
changeset 36148 0f9e52f900c4
parent 36133 6df206ef4b10
child 36329 93943eef696f
equal deleted inserted replaced
36147:6eb7d95f8970 36148:0f9e52f900c4
   409         authorfile = self.authorfile
   409         authorfile = self.authorfile
   410         if authorfile:
   410         if authorfile:
   411             self.ui.status(_('writing author map file %s\n') % authorfile)
   411             self.ui.status(_('writing author map file %s\n') % authorfile)
   412             ofile = open(authorfile, 'wb+')
   412             ofile = open(authorfile, 'wb+')
   413             for author in self.authors:
   413             for author in self.authors:
   414                 ofile.write("%s=%s\n" % (author, self.authors[author]))
   414                 ofile.write(util.tonativeeol("%s=%s\n"
       
   415                                              % (author, self.authors[author])))
   415             ofile.close()
   416             ofile.close()
   416 
   417 
   417     def readauthormap(self, authorfile):
   418     def readauthormap(self, authorfile):
   418         afile = open(authorfile, 'rb')
   419         afile = open(authorfile, 'rb')
   419         for line in afile:
   420         for line in afile: