D6397: rust-python3: compatibility fix for incoming PyLong
gracinet (Georges Racinet)
phabricator at mercurial-scm.org
Tue May 21 19:32:05 EDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG48df8a06c8bb: rust-python3: compatibility fix for incoming PyLong (authored by gracinet, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6397?vs=15207&id=15212
REVISION DETAIL
https://phab.mercurial-scm.org/D6397
AFFECTED FILES
rust/hg-cpython/src/dirstate.rs
CHANGE DETAILS
diff --git a/rust/hg-cpython/src/dirstate.rs b/rust/hg-cpython/src/dirstate.rs
--- a/rust/hg-cpython/src/dirstate.rs
+++ b/rust/hg-cpython/src/dirstate.rs
@@ -12,7 +12,7 @@
use cpython::{
exc, PyBytes, PyDict, PyErr, PyInt, PyModule, PyObject, PyResult,
- PySequence, PyTuple, Python, ToPyObject,
+ PySequence, PythonObject, PyTuple, Python, ToPyObject,
};
use hg::{
pack_dirstate, parse_dirstate, CopyVecEntry, DirstateEntry,
@@ -153,7 +153,7 @@
&dirstate_vec?,
&copies?,
DirstateParents { p1, p2 },
- now.value(py) as i32,
+ now.as_object().extract::<i32>(py)?,
) {
Ok((packed, new_dirstate_vec)) => {
for (
To: gracinet, #hg-reviewers
Cc: yuja, durin42, kevincox, mercurial-devel
More information about the Mercurial-devel
mailing list