hgext/histedit.py
branchstable
changeset 43372 66a0c5faed1e
parent 43371 85ab79bc7dab
child 43373 de2c8722a787
--- a/hgext/histedit.py	Thu Oct 31 15:02:48 2019 -0700
+++ b/hgext/histedit.py	Thu Oct 31 15:00:49 2019 -0700
@@ -1684,11 +1684,10 @@
         if type(rc) is list:
             ui.status(_(b"performing changes\n"))
             rules = makecommands(rc)
-            filename = repo.vfs.join(b'chistedit')
-            with open(filename, b'w+') as fp:
+            with repo.vfs(b'chistedit', b'w+') as fp:
                 for r in rules:
                     fp.write(r)
-            opts[b'commands'] = filename
+                opts[b'commands'] = fp.name
             return _texthistedit(ui, repo, *freeargs, **opts)
     except KeyboardInterrupt:
         pass