Mercurial > hg
view tests/test-check-code-hg.t @ 18096:cd53e40ab0e2
inotify: don't fall over just because of a dangling symlink
Previously, the inotify server failed to start if .hg/inotify.sock was
a symlink that pointed to a non-existent path. This behaviour does not
seem to make any sense.
Now, if we encounter a broken symlink, we unlink it and continue.
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Tue, 18 Dec 2012 17:33:32 -0800 |
parents | a6180647ead4 |
children | 667063b22a69 |
line wrap: on
line source
$ check_code="$TESTDIR"/../contrib/check-code.py $ cd "$TESTDIR"/.. $ if hg identify -q > /dev/null; then : > else > echo "skipped: not a Mercurial working dir" >&2 > exit 80 > fi New errors are not allowed. Warnings are strongly discouraged. $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0