mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
61f0a3da45
Summary: Add "--dry-run" for fix-code.py and use it in test-check. This avoids license header and version = "*" issues. Reviewed By: ikostia Differential Revision: D10213070 fbshipit-source-id: 9fdd49ead3dfcecf292d5f42c028f20e5dde65d3
10 lines
292 B
Perl
10 lines
292 B
Perl
#require test-repo
|
|
|
|
$ . "$TESTDIR/helpers-testrepo.sh"
|
|
$ cd "$TESTDIR"/..
|
|
|
|
$ testrepohg files . > $TESTTMP/filelist
|
|
$ testrepohgenv; python ./contrib/fix-code.py --dry-run `cat $TESTTMP/filelist`
|
|
# In case the above list is not empty, run 'contrib/fix-code.py FILE...' to
|
|
# fix them.
|