mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
60ae5c218a
Summary: Tested variations mentioned in the added README, especially the nodejs -> parent -> child case: Windows: $ node hello_parent.js [Parent] Got message from child: HELLO FROM CHILD [Child] Got message from parent: String("HELLO FROM PARENT 1") [Parent] Got message from child: [ 'Echo from child', 'HELLO FROM PARENT 1' ] [Child] Got message from parent: String("HELLO FROM PARENT 2") [Parent] Got message from child: [ 'Echo from child', 'HELLO FROM PARENT 2' ] [Child] Got message from parent: String("BYE") [Parent] Child process has exited $ cargo run --example spawn_sendfd Parent: spawning child Parent: sending hello Parent: sending a.txt file descriptor Parent: sending stdio Parent: waiting for child to exit Child: started with IPC handle 100 Child: got message Some("hello") Child: got sendfd payload SendFdPayload { pid: 41528, raw_fds: [0x118] } Child: writing "something\n" to fd 0x118 Child: got stdio Child: write to stderr Child: no IPC singleton $ node hello_parent.js spawn_sendfd Parent: spawning child Parent: sending hello Parent: sending a.txt file descriptor Parent: sending stdio Parent: waiting for child to exit Child: started with IPC handle 100 Child: got message Some("hello") Child: got sendfd payload SendFdPayload { pid: 49952, raw_fds: [0x118] } Child: writing "something\n" to fd 0x118 Child: got stdio Child: write to stderr Child: has IPC singleton [Parent] Got message from child: HELLO FROM CHILD Child: Got message: String("HELLO FROM PARENT 1") [Parent] Got message from child: [ 'Echo from child', 'HELLO FROM PARENT 1' ] Child: Got message: String("HELLO FROM PARENT 2") [Parent] Got message from child: [ 'Echo from child', 'HELLO FROM PARENT 2' ] Child: Got message: String("BYE") [Parent] Child process has exited Linux: % node hello_parent.js [Parent] Got message from child: HELLO FROM CHILD [Child] Got message from parent: String("HELLO FROM PARENT 1") [Parent] Got message from child: [ 'Echo from child', 'HELLO FROM PARENT 1' ] [Child] Got message from parent: String("HELLO FROM PARENT 2") [Parent] Got message from child: [ 'Echo from child', 'HELLO FROM PARENT 2' ] [Child] Got message from parent: String("BYE") [Parent] Child process has exited % cargo run --example spawn_sendfd Parent: spawning child Parent: sending hello Parent: sending a.txt file descriptor Parent: sending stdio Parent: waiting for child to exit Child: started with IPC handle 4 Child: got message Some("hello") Child: got sendfd payload SendFdPayload { raw_fds: [3] } Child: writing "something\n" to fd 3 Child: got stdio Child: write to stderr Child: no IPC singleton % node hello_parent.js spawn_sendfd Parent: spawning child Parent: sending hello Parent: sending a.txt file descriptor Parent: sending stdio Parent: waiting for child to exit Child: started with IPC handle 5 Child: got message Some("hello") Child: got sendfd payload SendFdPayload { raw_fds: [4] } Child: writing "something\n" to fd 4 Child: got stdio Child: write to stderr Child: has IPC singleton [Parent] Got message from child: HELLO FROM CHILD Child: Got message: String("HELLO FROM PARENT 1") [Parent] Got message from child: [ 'Echo from child', 'HELLO FROM PARENT 1' ] Child: Got message: String("HELLO FROM PARENT 2") [Parent] Got message from child: [ 'Echo from child', 'HELLO FROM PARENT 2' ] Child: Got message: String("BYE") [Parent] Child process has exited Reviewed By: muirdm Differential Revision: D46811170 fbshipit-source-id: 96b2d4a7a3c5f8599058faea949ea3ee7be962be |
||
---|---|---|
.. | ||
contrib | ||
distutils_rust | ||
doc | ||
edenscm | ||
edenscmnative | ||
exec | ||
ghstack | ||
hgcache_size_logger | ||
i18n | ||
lib | ||
newdoc | ||
packaging | ||
pystubs | ||
slides | ||
tests | ||
.editorconfig | ||
.flake8 | ||
.gitignore | ||
.rustfmt.toml | ||
Cargo.toml | ||
COPYING | ||
fsprobe.sh | ||
gen_version.py | ||
hgeditor | ||
Makefile | ||
README.md | ||
setup.py |
Mercurial
Mercurial is a fast, easy to use, distributed revision control tool for software developers.
Basic install:
$ make # see install targets
$ make install # do a system-wide install
$ hg debuginstall # sanity-check setup
$ hg # see help
Running without installing:
$ make local # build for inplace usage
$ ./hg --version # should show the latest version
See https://mercurial-scm.org/ for detailed installation instructions, platform-specific notes, and Mercurial user information.