equal
deleted
inserted
replaced
33 mergestate as mergestatemod, |
33 mergestate as mergestatemod, |
34 obsutil, |
34 obsutil, |
35 pathutil, |
35 pathutil, |
36 policy, |
36 policy, |
37 pycompat, |
37 pycompat, |
38 requirements, |
|
39 scmutil, |
38 scmutil, |
40 subrepoutil, |
39 subrepoutil, |
41 util, |
40 util, |
42 worker, |
41 worker, |
43 ) |
42 ) |
2022 |
2021 |
2023 update_from_null = False |
2022 update_from_null = False |
2024 update_from_null_fallback = False |
2023 update_from_null_fallback = False |
2025 if ( |
2024 if ( |
2026 MAYBE_USE_RUST_UPDATE |
2025 MAYBE_USE_RUST_UPDATE |
|
2026 and repo.ui.configbool(b"rust", b"update-from-null") |
2027 and rust_update_mod is not None |
2027 and rust_update_mod is not None |
2028 and p1.rev() == nullrev |
2028 and p1.rev() == nullrev |
2029 and not branchmerge |
2029 and not branchmerge |
2030 # TODO it's probably not too hard to pass down the transaction and |
2030 # TODO it's probably not too hard to pass down the transaction and |
2031 # respect the write patterns from Rust. But since it doesn't affect |
2031 # respect the write patterns from Rust. But since it doesn't affect |