# HG changeset patch # User Sean Farley # Date 1484630121 28800 # Node ID 565c070360663af1acf1ec0e3e84b619b229d061 # Parent bcad61a1f9a7ca2fd80f4941acb790cf2a344fc5 cmdutil: add tmpdir parament to ui.edit calls diff -r bcad61a1f9a7 -r 565c07036066 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Mon Jan 16 21:05:22 2017 -0800 +++ b/mercurial/cmdutil.py Mon Jan 16 21:15:21 2017 -0800 @@ -231,7 +231,8 @@ + crecordmod.patchhelptext + fp.read()) reviewedpatch = ui.edit(patchtext, "", - extra={"suffix": ".diff"}) + extra={"suffix": ".diff"}, + tmpdir=repo.path) fp.truncate(0) fp.write(reviewedpatch) fp.seek(0) @@ -2780,7 +2781,8 @@ pending = tr and tr.writepending() and repo.root editortext = repo.ui.edit(committext, ctx.user(), ctx.extra(), - editform=editform, pending=pending) + editform=editform, pending=pending, + tmpdir=repo.path) text = editortext # strip away anything below this special string (used for editors that want