mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
22948ce7e1
Summary: Adds the same check code test that upstream Mercurial uses. Test Plan: Ran it, and fixed all the failures. I won't land this commit until all the failure fixes are landed. Reviewers: #sourcecontrol, ttung, rmcelroy, wez Reviewed By: wez Subscribers: quark, rmcelroy, wez Differential Revision: https://phabricator.intern.facebook.com/D3221380 Signature: t1:3221380:1461802769:19f5bdc209c05edb442faa70ae572ce31e2fbc95
11 lines
398 B
Perl
11 lines
398 B
Perl
|
|
$ check_code="$TESTDIR"/check-code.py
|
|
$ cd "$TESTDIR"/..
|
|
|
|
New errors are not allowed. Warnings are strongly discouraged.
|
|
(The writing "no-che?k-code" is for not skipping this file when checking.)
|
|
|
|
$ EXTRAS=`python -c 'import lz4revlog' 2> /dev/null && echo "--config extensions.lz4revlog="`
|
|
$ hg $EXTRAS locate | sed 's-\\-/-g' |
|
|
> xargs "$check_code" --warnings --per-file=0 || false
|