Mercurial > hg
comparison rust/Cargo.lock @ 49149:006688e36e12 stable
rhg: use `Command::exec` instead of `Command::status`
`rhg` is supposed to be a transparent executable, using a subprocess defeats
that purpose. See inline comments for more details.
This also introduces the `which` crate to check if the fallback executable
actually exists to help debugging (plain `execve` doesn't give much
information).
The error code 253 is used to signify that the fallback is not found, but may
mean in the future that it is otherwise invalid if we start being more
specific.
Differential Revision: https://phab.mercurial-scm.org/D12578
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 19 Apr 2022 12:27:40 +0200 |
parents | dd6b67d5c256 |
children | a932cad26d37 |
comparison
equal
deleted
inserted
replaced
49148:db3f8e5cc965 | 49149:006688e36e12 |
---|---|
503 source = "registry+https://github.com/rust-lang/crates.io-index" | 503 source = "registry+https://github.com/rust-lang/crates.io-index" |
504 checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" | 504 checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" |
505 | 505 |
506 [[package]] | 506 [[package]] |
507 name = "libc" | 507 name = "libc" |
508 version = "0.2.81" | 508 version = "0.2.124" |
509 source = "registry+https://github.com/rust-lang/crates.io-index" | 509 source = "registry+https://github.com/rust-lang/crates.io-index" |
510 checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb" | 510 checksum = "21a41fed9d98f27ab1c6d161da622a4fa35e8a54a8adc24bbf3ddd0ef70b0e50" |
511 | 511 |
512 [[package]] | 512 [[package]] |
513 name = "libm" | 513 name = "libm" |
514 version = "0.2.1" | 514 version = "0.2.1" |
515 source = "registry+https://github.com/rust-lang/crates.io-index" | 515 source = "registry+https://github.com/rust-lang/crates.io-index" |
947 "lazy_static", | 947 "lazy_static", |
948 "log", | 948 "log", |
949 "micro-timer", | 949 "micro-timer", |
950 "regex", | 950 "regex", |
951 "users", | 951 "users", |
952 "which", | |
952 ] | 953 ] |
953 | 954 |
954 [[package]] | 955 [[package]] |
955 name = "same-file" | 956 name = "same-file" |
956 version = "1.0.6" | 957 version = "1.0.6" |
1149 version = "0.10.0+wasi-snapshot-preview1" | 1150 version = "0.10.0+wasi-snapshot-preview1" |
1150 source = "registry+https://github.com/rust-lang/crates.io-index" | 1151 source = "registry+https://github.com/rust-lang/crates.io-index" |
1151 checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" | 1152 checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" |
1152 | 1153 |
1153 [[package]] | 1154 [[package]] |
1155 name = "which" | |
1156 version = "4.2.5" | |
1157 source = "registry+https://github.com/rust-lang/crates.io-index" | |
1158 checksum = "5c4fb54e6113b6a8772ee41c3404fb0301ac79604489467e0a9ce1f3e97c24ae" | |
1159 dependencies = [ | |
1160 "either", | |
1161 "lazy_static", | |
1162 "libc", | |
1163 ] | |
1164 | |
1165 [[package]] | |
1154 name = "winapi" | 1166 name = "winapi" |
1155 version = "0.3.9" | 1167 version = "0.3.9" |
1156 source = "registry+https://github.com/rust-lang/crates.io-index" | 1168 source = "registry+https://github.com/rust-lang/crates.io-index" |
1157 checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" | 1169 checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" |
1158 dependencies = [ | 1170 dependencies = [ |