Method
watchman
(
&self,
root: &Path,
args: &[&str],
stdin: Vec<u8>,
)
Source from the content-addressed store, hash-verified
| 40 | } |
| 41 | |
| 42 | fn watchman( |
| 43 | &self, |
| 44 | root: &Path, |
| 45 | args: &[&str], |
| 46 | stdin: Vec<u8>, |
| 47 | ) -> Result<CommandOutput, ChangeSourceError> { |
| 48 | let mut spec = CommandSpec::new("watchman", root); |
| 49 | spec.args = args.iter().map(|arg| (*arg).to_owned()).collect(); |
| 50 | spec.stdin = stdin; |
| 51 | spec.timeout = self.timeout; |
| 52 | spec.max_output_bytes = self.max_candidates.saturating_mul(4096).max(64 * 1024); |
| 53 | self.runner.run(&spec) |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | impl ChangeSource for WatchmanChangeSource { |
Tested by
no test coverage detected