hg-new-workdir: suppress watchman warning during initial update

Summary: Updating another copy of the script from D3973940

Test Plan: Same as D3973940

Reviewers: #sourcecontrol, rmcelroy

Reviewed By: rmcelroy

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3973951

Signature: t1:3973951:1475659840:3bcf1c48a2332a1572bc6d450627b4fa9e8b338f
This commit is contained in:
Wez Furlong 2016-10-05 03:25:53 -07:00
parent 19db7fa2a6
commit cf7b371cf2

View File

@ -55,6 +55,11 @@ if [[ -e $src/.hg/sparse ]]; then
fi
echo "Updating new repository..."
hg --cwd "$dst" update $(hg --cwd "$src" log -r . -T '{node}')
# Disable the watchman integration during the initial checkout;
# to start with there is no .watchmanconfig and the local policy
# may be to disallow watching the repo without one, leading to a
# harmless but confusing error message.
hg --cwd "$dst" --config fsmonitor.mode=off \
update $(hg --cwd "$src" log -r . -T '{node}')
echo "Set up new Mercurial Working Directory in '$dst' based on '$src'..."