equal
deleted
inserted
replaced
1062 f.write('\n'.join(['# ' + i for i in phelp.splitlines()])) |
1062 f.write('\n'.join(['# ' + i for i in phelp.splitlines()])) |
1063 f.close() |
1063 f.close() |
1064 # Start the editor and wait for it to complete |
1064 # Start the editor and wait for it to complete |
1065 editor = ui.geteditor() |
1065 editor = ui.geteditor() |
1066 ret = ui.system("%s \"%s\"" % (editor, patchfn), |
1066 ret = ui.system("%s \"%s\"" % (editor, patchfn), |
1067 environ={'HGUSER': ui.username()}) |
1067 environ={'HGUSER': ui.username()}, |
|
1068 blockedtag='filterpatch') |
1068 if ret != 0: |
1069 if ret != 0: |
1069 ui.warn(_("editor exited with exit code %d\n") % ret) |
1070 ui.warn(_("editor exited with exit code %d\n") % ret) |
1070 continue |
1071 continue |
1071 # Remove comment lines |
1072 # Remove comment lines |
1072 patchfp = open(patchfn) |
1073 patchfp = open(patchfn) |