hgext/histedit.py
changeset 52561 1a7bc756e3f2
parent 52373 7688ecd56bbd
child 52638 dc36535a5edc
--- a/hgext/histedit.py	Mon Dec 16 20:24:56 2024 -0500
+++ b/hgext/histedit.py	Mon Dec 16 20:28:58 2024 -0500
@@ -1950,8 +1950,7 @@
         with ui.timeblockedsection(b'histedit'):
             return ui.fin.read()
     else:
-        with open(path, 'rb') as f:
-            return f.read()
+        return util.readfile(path)
 
 
 def _validateargs(ui, repo, freeargs, opts, goal, rules, revs):