sapling/eden/scm/exec/hgmain
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
..
src clidispatch: add an API to obtain "writable" stdout stream 2021-02-23 15:09:14 -08:00
build.rs Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
Cargo.toml configs: move fbrules to a Facebook only part of the crate 2020-05-01 13:17:21 -07:00