##// END OF EJS Templates
cmdutil: add tmpdir parament to ui.edit calls
Sean Farley -
r30836:565c0703 default
parent child Browse files
Show More
@@ -231,7 +231,8 b' def dorecord(ui, repo, commitfunc, cmdsu'
231 + crecordmod.patchhelptext
231 + crecordmod.patchhelptext
232 + fp.read())
232 + fp.read())
233 reviewedpatch = ui.edit(patchtext, "",
233 reviewedpatch = ui.edit(patchtext, "",
234 extra={"suffix": ".diff"})
234 extra={"suffix": ".diff"},
235 tmpdir=repo.path)
235 fp.truncate(0)
236 fp.truncate(0)
236 fp.write(reviewedpatch)
237 fp.write(reviewedpatch)
237 fp.seek(0)
238 fp.seek(0)
@@ -2780,7 +2781,8 b' def commitforceeditor(repo, ctx, subs, f'
2780 pending = tr and tr.writepending() and repo.root
2781 pending = tr and tr.writepending() and repo.root
2781
2782
2782 editortext = repo.ui.edit(committext, ctx.user(), ctx.extra(),
2783 editortext = repo.ui.edit(committext, ctx.user(), ctx.extra(),
2783 editform=editform, pending=pending)
2784 editform=editform, pending=pending,
2785 tmpdir=repo.path)
2784 text = editortext
2786 text = editortext
2785
2787
2786 # strip away anything below this special string (used for editors that want
2788 # strip away anything below this special string (used for editors that want
General Comments 0
You need to be logged in to leave comments. Login now