# HG changeset patch # User Martin von Zweigbergk # Date 2020-06-25 17:32:51 # Node ID 3fadbdc47aedfe3adcd41ce9a23aef36884ba049 # Parent d1471dbbdd63e17514ebcd8dd94cbbdc401fff61 # Parent 2fd8a8c1127378bce6e6a4205fe7e3c62134cb99 merge with stable diff --git a/hgext/share.py b/hgext/share.py --- a/hgext/share.py +++ b/hgext/share.py @@ -5,6 +5,15 @@ '''share a common history between several working directories +The share extension introduces a new command :hg:`share` to create a new +working directory. This is similar to :hg:`clone`, but doesn't involve +copying or linking the storage of the repository. This allows working on +different branches or changes in parallel without the associated cost in +terms of disk space. + +Note: destructive operations or extensions like :hg:`rollback` should be +used with care as they can result in confusing problems. + Automatic Pooled Storage for Clones ----------------------------------- diff --git a/mercurial/utils/procutil.py b/mercurial/utils/procutil.py --- a/mercurial/utils/procutil.py +++ b/mercurial/utils/procutil.py @@ -635,7 +635,9 @@ else: def _do_wait(): os.waitpid(pid, 0) - threading.Thread(target=_do_wait, daemon=True).start() + t = threading.Thread(target=_do_wait) + t.daemon = True + t.start() return # Parent process (_pid, status) = os.waitpid(pid, 0)