mercurial/patch.py
changeset 41986 95e4ae86329f
parent 41982 f8c5225b9054
child 41987 c1d83d916e85
equal deleted inserted replaced
41985:b1bc6e5f5249 41986:95e4ae86329f
  1115                 try:
  1115                 try:
  1116                     # Write the initial patch
  1116                     # Write the initial patch
  1117                     f = util.nativeeolwriter(os.fdopen(patchfd, r'wb'))
  1117                     f = util.nativeeolwriter(os.fdopen(patchfd, r'wb'))
  1118                     chunk.header.write(f)
  1118                     chunk.header.write(f)
  1119                     chunk.write(f)
  1119                     chunk.write(f)
  1120                     f.write('\n'.join(['# ' + i for i in phelp.splitlines()]))
  1120                     f.write(''.join(['# ' + i + '\n'
       
  1121                                      for i in phelp.splitlines()]))
  1121                     f.close()
  1122                     f.close()
  1122                     # Start the editor and wait for it to complete
  1123                     # Start the editor and wait for it to complete
  1123                     editor = ui.geteditor()
  1124                     editor = ui.geteditor()
  1124                     ret = ui.system("%s \"%s\"" % (editor, patchfn),
  1125                     ret = ui.system("%s \"%s\"" % (editor, patchfn),
  1125                                     environ={'HGUSER': ui.username()},
  1126                                     environ={'HGUSER': ui.username()},