rust/hg-pyo3/src/revlog/mod.rs
changeset 52884 8de68446a5bd
parent 52841 28f0f00b5dbd
--- a/rust/hg-pyo3/src/revlog/mod.rs	Thu Feb 13 13:10:11 2025 +0100
+++ b/rust/hg-pyo3/src/revlog/mod.rs	Thu Feb 13 13:13:05 2025 +0100
@@ -471,16 +471,7 @@
         rev: PyRevision,
         stoprev: Option<PyRevision>,
     ) -> PyResult<Py<PyTuple>> {
-        Self::with_index_read(slf, |idx| {
-            let using_general_delta = idx.uses_generaldelta();
-            Self::_index_deltachain(
-                slf,
-                py,
-                rev,
-                stoprev,
-                Some(using_general_delta.into()),
-            )
-        })
+        Self::_index_deltachain(slf, py, rev, stoprev)
     }
 
     fn compress(
@@ -1137,15 +1128,13 @@
     }
 
     /// determine revisions with deltas to reconstruct fulltext
-    #[pyo3(signature = (rev, stop_rev, using_general_delta))]
+    #[pyo3(signature = (rev, stop_rev))]
     fn _index_deltachain(
         slf: &Bound<'_, Self>,
         py: Python<'_>,
         rev: PyRevision,
         stop_rev: Option<PyRevision>,
-        using_general_delta: Option<u32>,
     ) -> PyResult<Py<PyTuple>> {
-        let using_general_delta = using_general_delta.map(|i| i != 0);
         let rev: UncheckedRevision = rev.into();
         let stop_rev: Option<UncheckedRevision> = stop_rev.map(Into::into);
 
@@ -1162,7 +1151,7 @@
                     })
                 })
                 .transpose()?;
-            idx.delta_chain(rev, stop_rev, using_general_delta)
+            idx.delta_chain(rev, stop_rev)
                 .map_err(|e| PyValueError::new_err(e.to_string()))
         })?;