( )⚙ D7584 procutil: add a option to not fully detach background process

This is an archive of the discontinued Mercurial Phabricator instance.

procutil: add a option to not fully detach background process
ClosedPublic

Authored by marmoute on Dec 9 2019, 8:02 AM.

Details

Summary

When writing test, it is useful to make code pretending to spawn a fully
detached process while still actually waiting for it to finish. We add the
option to procutil.runbgcommand, to do so. We will use this in remote-filelog
tests.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

marmoute created this revision.Dec 9 2019, 8:02 AM

target is the stable-branch

durin42 requested changes to this revision.Dec 9 2019, 10:14 AM
durin42 added a subscriber: durin42.
durin42 added inline comments.
mercurial/utils/procutil.py
589

s/register_wait/record_wait/?

592

s/developper/developers/

This revision now requires changes to proceed.Dec 9 2019, 10:14 AM
marmoute updated this revision to Diff 18556.Dec 9 2019, 10:51 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.