hgext/largefiles/proto.py
changeset 52562 5dcf40af7c2d
parent 52389 aa3261b40492
child 52563 30f81efce00b
--- a/hgext/largefiles/proto.py	Mon Dec 16 20:28:58 2024 -0500
+++ b/hgext/largefiles/proto.py	Mon Dec 16 20:38:13 2024 -0500
@@ -71,6 +71,8 @@
         raise error.Abort(
             _(b'requested largefile %s not present in cache') % sha
         )
+
+    # TODO: fix the fd leak here
     f = open(filename, 'rb')
     length = os.fstat(f.fileno())[6]