2014-08-06 20:53:08 +04:00
|
|
|
#require test-repo
|
2014-05-05 22:42:58 +04:00
|
|
|
|
2016-05-11 07:49:27 +03:00
|
|
|
$ . "$TESTDIR/helpers-testrepo.sh"
|
2011-11-23 05:50:58 +04:00
|
|
|
$ check_code="$TESTDIR"/../contrib/check-code.py
|
|
|
|
$ cd "$TESTDIR"/..
|
|
|
|
|
2013-07-06 23:47:56 +04:00
|
|
|
New errors are not allowed. Warnings are strongly discouraged.
|
2014-01-08 01:29:15 +04:00
|
|
|
(The writing "no-che?k-code" is for not skipping this file when checking.)
|
2013-07-06 23:47:56 +04:00
|
|
|
|
2017-10-01 13:24:19 +03:00
|
|
|
$ testrepohg locate \
|
|
|
|
> -X contrib/python-zstandard \
|
|
|
|
> -X hgext/fsmonitor/pywatchman \
|
|
|
|
> -X mercurial/thirdparty \
|
2018-01-08 23:54:57 +03:00
|
|
|
> -X lib/third-party \
|
2018-01-03 20:46:16 +03:00
|
|
|
> -X fb-hgext \
|
2018-01-03 21:03:16 +03:00
|
|
|
> -X hg-git \
|
2017-10-01 13:24:19 +03:00
|
|
|
> | sed 's-\\-/-g' | "$check_code" --warnings --per-file=0 - || false
|
2018-01-04 21:54:02 +03:00
|
|
|
Skipping hgext/hgsql.py it has no-che?k-code (glob)
|
2018-01-03 22:51:20 +03:00
|
|
|
Skipping hgsubversion/hgsubversion/__init__.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/compathacks.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/editor.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/hooks/updatemeta.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/layouts/base.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/layouts/custom.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/layouts/standard.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/maps.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/pushmod.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/stupid.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/svncommands.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/svnexternals.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/svnmeta.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/svnrepo.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/svnwrap/__init__.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/svnwrap/common.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/svnwrap/subvertpy_wrapper.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/svnwrap/svn_swig_wrapper.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/util.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/verify.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/hgsubversion/wrappers.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/setup.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/comprehensive/test_custom_layout.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/comprehensive/test_obsstore_on.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/comprehensive/test_rebuildmeta.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/comprehensive/test_sqlite_revmap.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/comprehensive/test_stupid_pull.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/comprehensive/test_updatemeta.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/comprehensive/test_verify_and_startrev.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/fixtures/rsvn.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/run.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_externals.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_fetch_branches.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_fetch_command.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_fetch_command_regexes.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_fetch_exec.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_fetch_mappings.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_fetch_symlinks.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_push_command.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_push_dirs.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_push_renames.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_single_dir_clone.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_single_dir_push.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_svn_pre_commit_hooks.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_svnwrap.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_tags.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_template_keywords.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_urls.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_util.py it has no-che?k-code (glob)
|
|
|
|
Skipping hgsubversion/tests/test_utility_commands.py it has no-che?k-code (glob)
|
2014-01-08 01:29:15 +04:00
|
|
|
Skipping i18n/polib.py it has no-che?k-code (glob)
|
2018-01-09 02:08:18 +03:00
|
|
|
Skipping lib/clib/buffer.c it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/buffer.h it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/convert.h it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/null_test.c it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/portability/inet.h it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/portability/portability.h it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/portability/unistd.h it has no-che?k-code (glob)
|
|
|
|
Skipping lib/clib/sha1.h it has no-che?k-code (glob)
|
2014-01-08 01:29:15 +04:00
|
|
|
Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
|
|
|
|
Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob)
|
2016-11-02 04:54:03 +03:00
|
|
|
Skipping mercurial/statprof.py it has no-che?k-code (glob)
|
2017-04-14 08:19:28 +03:00
|
|
|
Skipping tests/badserverext.py it has no-che?k-code (glob)
|
2018-01-04 21:54:02 +03:00
|
|
|
Skipping tests/test-hgsql-encoding.t it has no-che?k-code (glob)
|
|
|
|
Skipping tests/test-hgsql-race-conditions.t it has no-che?k-code (glob)
|
2016-11-25 20:55:05 +03:00
|
|
|
|
|
|
|
@commands in debugcommands.py should be in alphabetical order.
|
|
|
|
|
|
|
|
>>> import re
|
|
|
|
>>> commands = []
|
|
|
|
>>> with open('mercurial/debugcommands.py', 'rb') as fh:
|
|
|
|
... for line in fh:
|
|
|
|
... m = re.match("^@command\('([a-z]+)", line)
|
|
|
|
... if m:
|
|
|
|
... commands.append(m.group(1))
|
|
|
|
>>> scommands = list(sorted(commands))
|
|
|
|
>>> for i, command in enumerate(scommands):
|
|
|
|
... if command != commands[i]:
|
|
|
|
... print('commands in debugcommands.py not sorted; first differing '
|
|
|
|
... 'command is %s; expected %s' % (commands[i], command))
|
|
|
|
... break
|
2017-03-29 22:14:20 +03:00
|
|
|
|
|
|
|
Prevent adding new files in the root directory accidentally.
|
|
|
|
|
2017-07-02 07:14:20 +03:00
|
|
|
$ testrepohg files 'glob:*'
|
2017-07-21 17:22:08 +03:00
|
|
|
.arcconfig
|
2015-01-25 01:04:25 +03:00
|
|
|
.clang-format
|
2017-03-29 22:14:20 +03:00
|
|
|
.editorconfig
|
|
|
|
.hgignore
|
|
|
|
.hgsigs
|
|
|
|
.hgtags
|
2017-11-22 17:18:06 +03:00
|
|
|
.jshintrc
|
2017-03-29 22:14:20 +03:00
|
|
|
CONTRIBUTING
|
|
|
|
CONTRIBUTORS
|
|
|
|
COPYING
|
|
|
|
Makefile
|
2017-09-26 09:37:17 +03:00
|
|
|
README.rst
|
2017-03-29 22:14:20 +03:00
|
|
|
hg
|
|
|
|
hgeditor
|
|
|
|
hgweb.cgi
|
|
|
|
setup.py
|