comparison rust/chg/src/locator.rs @ 44683:065048e66f32

rust-chg: send client side umask to server This is equivalent to forwardumask() of hgclient.c. Differential Revision: https://phab.mercurial-scm.org/D8382
author Yuya Nishihara <yuya@tcha.org>
date Thu, 04 Oct 2018 22:44:37 +0900
parents 9ce613d648de
children 80d6e3415636
comparison
equal deleted inserted replaced
44682:9ce613d648de 44683:065048e66f32
22 22
23 use super::clientext::ChgClientExt; 23 use super::clientext::ChgClientExt;
24 use super::message::{Instruction, ServerSpec}; 24 use super::message::{Instruction, ServerSpec};
25 use super::procutil; 25 use super::procutil;
26 26
27 const REQUIRED_SERVER_CAPABILITIES: &[&str] = 27 const REQUIRED_SERVER_CAPABILITIES: &[&str] = &[
28 &["attachio", "chdir", "runcommand", "setenv", "validate"]; 28 "attachio",
29 "chdir",
30 "runcommand",
31 "setenv",
32 "setumask2",
33 "validate",
34 ];
29 35
30 /// Helper to connect to and spawn a server process. 36 /// Helper to connect to and spawn a server process.
31 #[derive(Clone, Debug)] 37 #[derive(Clone, Debug)]
32 pub struct Locator { 38 pub struct Locator {
33 hg_command: OsString, 39 hg_command: OsString,