mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
ab3a7cb21f
Summary: In preparation for merging fb-mercurial sources to the Eden repository, move everything from the top-level directory into an `eden/scm` subdirectory.
10 lines
357 B
Perl
10 lines
357 B
Perl
#require clang-format test-repo
|
|
|
|
$ . "$TESTDIR/helpers-testrepo.sh"
|
|
|
|
$ cd "$TESTDIR"/..
|
|
$ for f in `testrepohg files mercurial | egrep '\.(c|h)$' | egrep -v -f contrib/clang-format-blacklist` ; do
|
|
> clang-format --style file "$f" > "$TESTTMP/formatted.txt"
|
|
> cmp "$f" "$TESTTMP/formatted.txt" || diff -u "$f" "$TESTTMP/formatted.txt"
|
|
> done
|