mercurial/bundlerepo.py
changeset 1971 915b81a35e46
parent 1946 9fee186f7f0d
child 1980 dfb796786337
--- a/mercurial/bundlerepo.py
+++ b/mercurial/bundlerepo.py
@@ -206,3 +206,6 @@ class bundlerepository(localrepo.localre
         else:
             return filelog.filelog(self.opener, f)
 
+    def close(self):
+        """Close assigned bundle file immediately."""
+        self.bundlefile.close()