Commit Graph

  • d1c4b37752 treat all refs/users/.* references as internal and to be ignored master Joel Brobecker 2022-03-04 18:08:33 +04:00
  • f92492c718 replace distutils.version by packaging.version Joel Brobecker 2022-03-04 18:00:05 +04:00
  • 0f8e59b55f testsuite/README.md: Small formatting adjustments Joel Brobecker 2022-01-10 07:37:49 +04:00
  • de5fe5858b README.md: Add documentation on how to resend commit emails Joel Brobecker 2022-01-10 07:32:24 +04:00
  • 3aa6c961e0 testsuite/README.md: Add documentation on how to create testcases Joel Brobecker 2022-01-10 07:32:14 +04:00
  • ef6c560214 exclude ignored refs from git-notes commit emails information Joel Brobecker 2022-01-06 08:02:39 +04:00
  • aaa82a2198 README.md: Expand the documentation for the hooks.no-emails config option Joel Brobecker 2022-01-06 07:31:09 +04:00
  • a4f382e8bf Fix "to allow us to allow us" duplication in script documentation Joel Brobecker 2022-01-03 15:40:45 +04:00
  • 808aa87fe5 README.md: Fix various typos Joel Brobecker 2022-01-03 10:06:28 +04:00
  • 2ee1b2c47e Git Notes commit emails: include references containing annotated commit Joel Brobecker 2022-01-03 10:05:49 +04:00
  • f778d395eb split_ref_name: New function, factorized out of AbstractUpdate class Joel Brobecker 2022-01-03 10:01:30 +04:00
  • 0e7b6ff7d5 Add support for new force-precommit-checks config option Joel Brobecker 2022-01-03 09:58:25 +04:00
  • c6345d987f new TestcaseFixture.update_git_hooks_config method (code factorization) Joel Brobecker 2022-01-03 09:57:15 +04:00
  • e5b28c6890 Add support for adding a warning banner when sending emails Joel Brobecker 2022-01-03 09:56:50 +04:00
  • 8821aec0fd Force the use of quoted-printable as the Content-Transfer-Encoding Joel Brobecker 2022-01-03 09:56:28 +04:00
  • fd3ce75941 conftest.py: Simplify Run.cmd_out (remove support for old Git versions) Joel Brobecker 2021-12-13 02:25:19 +00:00
  • 12f6f66008 post_receive_when_ignore_refs: Avoid failure with older Git Joel Brobecker 2021-12-13 02:25:05 +00:00
  • 3f6d21583a Ignore more patterns of Gerrit (internal) references Joel Brobecker 2021-12-02 15:49:12 +04:00
  • 752787134a fast_forward.py: Fix arguments in call to warn from InvalidUpdate handler Joel Brobecker 2021-11-28 15:15:30 +04:00
  • 725ff2af9e .gitignore: Add .coverage.* to ignore list (with comment explaining why) Joel Brobecker 2021-11-28 15:04:49 +04:00
  • 5b5d746f0f .gitignore: Add comments explaining some of the ignored entries Joel Brobecker 2021-11-28 15:04:11 +04:00
  • 8b5d28174e Remove all imports of __future__.print_functions in the testsuite Joel Brobecker 2021-11-28 14:57:51 +04:00
  • 2d7ef76b2a Remove import of __future__.print_function in hooks/* Joel Brobecker 2021-11-28 14:45:25 +04:00
  • 1bcf28112d .coveragerc: Stop excluding lines with pragma: py2-only Joel Brobecker 2021-11-28 14:41:04 +04:00
  • 0060fca7ea guess_encoding: Remove Python-2.x-only code Joel Brobecker 2021-11-28 14:39:33 +04:00
  • d554918d1c class Email: Remove Python-2.x-only code Joel Brobecker 2021-11-28 14:30:22 +04:00
  • b05bcaf46d ensure_iso_8859_15_only: Remove Python-2.x-only handling Joel Brobecker 2021-11-28 14:27:46 +04:00
  • acb1c3aa2a encode_utf8: Remove Python-2.x-only code Joel Brobecker 2021-11-28 14:25:46 +04:00
  • 56acb90821 safe_decode: Remove Python-2.x-only code Joel Brobecker 2021-11-28 14:18:13 +04:00
  • a26ec7a7ea update/post_receive: Do nothing if reference in hooks.ingore-refs Joel Brobecker 2021-11-28 14:14:22 +04:00
  • 5b164c12e0 Move search_config_option_list method to utils.py Joel Brobecker 2021-11-28 14:12:44 +04:00
  • 7bc1c15ff6 UB27-007__commit_email_formatter_diff_multiple_charsets: New testcase Joel Brobecker 2021-11-28 14:10:40 +04:00
  • 34707049ad testsuite/README-testsuite.md: Add new README for the testsuite. Joel Brobecker 2021-11-28 14:10:31 +04:00
  • 09381ab4a1 testsuite: Update expected output to Git 2.32 (with 2.25 compatibility) Joel Brobecker 2021-11-28 14:07:05 +04:00
  • d8e1b9c4e1 README.md: Document that the hooks now require Python 3.8 or later Joel Brobecker 2021-11-28 14:02:37 +04:00
  • 4b927b0a45 Remove remnants of old Python-2.x-based testsuite framework Joel Brobecker 2021-10-19 13:18:07 -07:00
  • 6c66db746b Stop adding gnatpython to the PATH used by the hooks Joel Brobecker 2021-10-19 13:18:00 -07:00
  • 6f3ee523bf Port the testsuite to pytest and Python 3.x Joel Brobecker 2021-10-19 13:17:32 -07:00
  • 76bd184b31 README.md: Document the Python version compatibility legacy-python2 Joel Brobecker 2021-10-03 14:55:56 -07:00
  • 23cc50ec72 syshooks/syslog.py: Decode the output returned by the logger Joel Brobecker 2021-10-03 14:23:33 -07:00
  • 23c0aea671 updates/sendmail.py: encode input and decode output when calling sendmail Joel Brobecker 2021-10-03 14:22:13 -07:00
  • f457d10a92 updates/emails.py: encode input and decode output when calling filer Joel Brobecker 2021-10-03 14:21:07 -07:00
  • 62fa030351 ThirdPartyHook.call: encode/decode the hook's input/output Joel Brobecker 2021-10-03 14:19:48 -07:00
  • 2178791fa7 encode input in call to git.check_attr Joel Brobecker 2021-10-03 14:18:33 -07:00
  • 010c33e913 encode input and decode output when calling hooks.mailinglist script Joel Brobecker 2021-10-03 14:17:32 -07:00
  • 9c82498e7b Introduce (the concept of) git command output decoding Joel Brobecker 2021-10-03 14:16:35 -07:00
  • d87407ca43 ensure_iso_8859_15_only: Enhance for Python 3.x (unicode revlog lines) Joel Brobecker 2021-10-03 14:16:19 -07:00
  • 6d9cc85f1d commit_filer_non_ascii_diff: Remove unused import (Header) Joel Brobecker 2021-10-03 14:12:11 -07:00
  • 40bf19a92e commit_filer_non_ascii_body: Remove unused import (Header) Joel Brobecker 2021-10-03 14:11:02 -07:00
  • 5c28a09670 commit_email_formatter_non_ascii_diff: Remove unused import (Header) Joel Brobecker 2021-10-03 14:09:57 -07:00
  • b5c1f88317 commit_email_formatter_non_ascii_body: Remove unused import (Header) Joel Brobecker 2021-10-03 14:09:01 -07:00
  • 9a3a3e8b47 guess_encoding (Python 3.x): drop iso-8859-15 guess (in favor of UTF-8) Joel Brobecker 2021-10-03 14:06:06 -07:00
  • 1b26ad75f0 testsuite/bin/stdout-sendmail: Parse email before printing Joel Brobecker 2021-10-03 14:05:46 -07:00
  • f18c10b78c stop bypassing the updates.sendmail module during testsuite runs Joel Brobecker 2021-09-24 17:41:10 -07:00
  • 26ee444039 sendmail.py: Remove fallback on smtplib Joel Brobecker 2021-09-24 09:09:37 -07:00
  • cbbf70fd11 Add coverage pragma for Python2-only block of code in updates/emails.py Joel Brobecker 2021-08-22 07:15:17 -07:00
  • fd889438a9 Add support for unicode strings to the "guess_encoding" function Joel Brobecker 2021-08-20 15:32:22 -07:00
  • 61a8e83e52 emails.py: Mark a couple of code blocks as being Python-2.x only Joel Brobecker 2021-07-17 17:03:22 -07:00
  • 19bafbec4e Make some testcase's output more predictable to avoid spurious errors Joel Brobecker 2021-07-17 15:30:56 -07:00
  • 179346fafb cannot_find_style_checker/run_test.py: Use "format" method instead of "%" Joel Brobecker 2021-07-11 17:51:32 -07:00
  • 473a7d3fe6 git_show_ref: Avoid changing dict size while iterating over it Joel Brobecker 2021-07-11 17:31:17 -07:00
  • dc09109dca pre_receive.py, update, post_receive.py: Turn buffering off Joel Brobecker 2021-07-11 14:56:38 -07:00
  • 62d7872f6f mailinglist_script: Remove use of "basestring" (transition to Python 3.x) Joel Brobecker 2021-07-10 15:24:55 -07:00
  • f68e5a3f23 commit_filer_non_ascii_subject: Add missing "os" import Joel Brobecker 2021-07-09 20:17:51 -07:00
  • 71b1061ad8 commit_filer_non_ascii_diff: Add missing "os" import Joel Brobecker 2021-07-09 20:17:51 -07:00
  • b5fe4bed95 commit_filer_non_ascii_body: Add missing "os" import Joel Brobecker 2021-07-09 20:17:51 -07:00
  • f00c6ff362 non_ascii_char_in_diff_with_commit_email_formatter: Add missing "os" import Joel Brobecker 2021-07-09 20:17:50 -07:00
  • 8b1b052cdf commit_email_formatter_non_ascii_subject: Add missing "os" import Joel Brobecker 2021-07-09 20:17:50 -07:00
  • 5f7b327c2f commit_email_formatter_non_ascii_diff: Add missing "os" import Joel Brobecker 2021-07-09 20:17:50 -07:00
  • 2040768615 commit_email_formatter_non_ascii_body: Add missing "os" import Joel Brobecker 2021-07-09 20:17:49 -07:00
  • 7df062e44b zero_max_filepath_length: Add missing "os" import Joel Brobecker 2021-07-09 20:17:49 -07:00
  • b601b02f35 mailinglist_from_ref_name: Add missing "os" import Joel Brobecker 2021-07-09 20:17:48 -07:00
  • 28c64b6c73 commit_checker_hook_on_tags: Add missing "os" import Joel Brobecker 2021-07-09 20:17:48 -07:00
  • fb11cb2210 commit_checker_hook_on_notes: Add missing "os" import Joel Brobecker 2021-07-09 20:17:48 -07:00
  • 2bbeaf7367 update_hook_reject: Add missing "os" import Joel Brobecker 2021-07-09 20:17:47 -07:00
  • 449310be2b update_hook_accept: Add missing "os" import Joel Brobecker 2021-07-09 20:17:47 -07:00
  • a5167caf81 post_receive_hook_failure: Add missing "os" import Joel Brobecker 2021-07-09 20:17:47 -07:00
  • 4d360b3848 post_receive_hook: Add missing "os" import Joel Brobecker 2021-07-09 20:17:46 -07:00
  • a4b773e436 commit_filer: Add missing "os" import Joel Brobecker 2021-07-09 20:17:46 -07:00
  • fcd01b7e63 mailinglist_script_failure: Add missing "os" import Joel Brobecker 2021-07-09 20:17:28 -07:00
  • 628a3220dc mailinglist_script: Add missing "os" import in testcase script Joel Brobecker 2021-07-09 19:58:11 -07:00
  • 743216a142 no_meta_config_file: Add missing "os" import in testcase script Joel Brobecker 2021-07-09 19:49:01 -07:00
  • 3e5eba7c32 logger_error: Add missing "os" import in testcase script Joel Brobecker 2021-07-09 19:45:29 -07:00
  • eeeaf4a6c0 git_module_utest: Simplify by using testcase.repo_dir Joel Brobecker 2021-07-07 10:46:14 -07:00
  • a6adcae92b TestCase.run_unit_test_script: Reuse self.bare_repo_dir Joel Brobecker 2021-07-07 10:42:02 -07:00
  • 23efd593fb testsuite: Replace the "TEST_DIR" global by a TestCase.work_dir property Joel Brobecker 2021-07-04 19:15:12 -07:00
  • 6310e92598 testsuite/lib/support.py: Remove import of "cd" Joel Brobecker 2021-07-04 19:14:22 -07:00
  • 956950ee67 Remove all calls to "cd" in all testcases Joel Brobecker 2021-07-04 19:13:20 -07:00
  • 05da61edb8 TestCase._run: run command in non-bare repo directory by default Joel Brobecker 2021-07-04 19:12:41 -07:00
  • 5455f4f701 Enhance some testcases to avoid assumption about current working directory Joel Brobecker 2021-07-04 19:10:27 -07:00
  • cf8e3f7beb Introduce new TestCase.repo_dir property Joel Brobecker 2021-07-04 19:09:35 -07:00
  • c2f0cfb1da Make TestCase.run a method rather than a (callable) attribute Joel Brobecker 2021-07-04 19:08:40 -07:00
  • b88f786142 Remove all calls to "cd(testcase.bare_repo_dir)" in testsuite Joel Brobecker 2021-07-04 19:07:46 -07:00
  • df860a0a40 Introduce new TestCase.bare_repo_dir property and use it in testcases Joel Brobecker 2021-07-04 19:06:56 -07:00
  • de9e3dc1e1 pre_receive.py: Access exception arguments through "args" attribute Joel Brobecker 2021-07-04 19:05:56 -07:00
  • 1bd677e16b alternate_style_checker: Rewrite to avoid modifying os.environ Joel Brobecker 2021-07-04 19:05:07 -07:00
  • f16eb39b2d pre_commit_checks.py: Show filename collisions in alphabetical order Joel Brobecker 2021-07-04 14:02:19 -07:00
  • 39caeb6fa1 Delete TestCase.enable_unit_test Joel Brobecker 2021-06-27 19:32:56 -07:00
  • a4de52aec9 hooks_tuple_default_config_ignored_utest: Stop using enable_unit_test Joel Brobecker 2021-06-27 18:35:00 -07:00
  • 50ad5d8a62 multiline_config_utest: Stop using testcase.enable_unit_test Joel Brobecker 2021-06-27 18:29:24 -07:00