sapling/eden/scm/exec
Jun Wu ae8a4340f7 clidispatch: add an API to obtain "writable" stdout stream
Summary:
Similar to D26518021 (3aba8d89b0), provide a way to obtain the "output" stream
that implements `std::io::Write`.

The "output" stream is then used to replace the `std::io::Write`
implementation on the `IO` itself.

This has 2 benefits:
- Removes the `&mut` methods on `IO`. So all `&mut IO` can be replaced by `&IO` without exceptions.
- Make it possible to drop `Clone` on `IO` (strong ref is not clonable, but weak ref can). So we can control the lifetime of the streams more predicatably.

Reviewed By: sfilipco

Differential Revision: D26538452

fbshipit-source-id: b00c65ae0ef5ef4a609104111706365028f47ef7
2021-02-23 15:09:14 -08:00
..
eden_apfs_mount_helper create subvolumes on disk backing repo 2021-01-29 20:43:23 -08:00
hgmain clidispatch: add an API to obtain "writable" stdout stream 2021-02-23 15:09:14 -08:00
scm_daemon Switch from failure::Fail trait to std::error::Error for errors 2019-11-22 08:53:31 -08:00
scratch mkscratch: remove old code 2021-02-20 15:42:37 -08:00
utils revisionstore: disallow reading LFS pointers from packfiles 2020-09-09 18:27:42 -07:00