- Jun 27, 2023
-
-
kiilerix authored
test-demandimport.py would fail on 'import distutils.msvc9compiler' because warnings: /usr/lib/python3.11/site-packages/_distutils_hack/__init__.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils. warnings.warn( /usr/lib/python3.11/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.") Telling demandimport to ignore this module will allow the hack to work as intended. Note: The test for distutils.msvc9compiler comes from 2205d00b6d2b. But since then, distutils is going away, and setuptools has moved forward and is replacing it. It is unclear exactly what is being tested here and how setuptools should depended on msvc9compiler. The test might no longer be relevant.
-
- Mar 22, 2023
-
-
kiilerix authored
The test output changed because test coverage changed because normpath changed: $ python3.10 -c 'import os; print(repr(os.path.normpath("asdas\0das")))' 'asdas\x00das' $ python3.11 -c 'import os; print(repr(os.path.normpath("asdas\0das")))' 'asdas'
-
- Jun 26, 2023
-
-
kiilerix authored
Testing on Fedora 38 failed with: fgrep: warning: fgrep is obsolescent; using grep -F The warning comes from https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1 . For further anecdotal evidence of the change, see https://www.phoronix.com/news/GNU-Grep-3.8-Stop-egrep-fgrep . grep -F is POSIX, but there is a risk that it doesn't work the same on all platforms - especially older Unix versions. It should however always be possible to put a GNU grep in $PATH before running the tests.
-
kiilerix authored
Testing on Fedora 38 failed with: egrep: warning: egrep is obsolescent; using grep -E The warning comes from https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1 . For further anecdotal evidence of the change, see https://www.phoronix.com/news/GNU-Grep-3.8-Stop-egrep-fgrep . This reverses the code check that goes back to e7d3b509af8b. grep -E is POSIX, but there is a risk that it doesn't work the same on all platforms - especially older Unix versions. It should however always be possible to put a GNU grep in $PATH before running the tests.
-
Arseniy Alekseyev authored
Before this MR running `hg debugrebuilddirstate` simply grows the dirstate without bound, never shrinking it, because the unused bytes counter stays low, even though the entirety of the file becomes unused.
-
Arseniy Alekseyev authored
It looks like the previous fix for the dirstate-v2 upgrade race didn't work. The problem is that it only recovers in case the size of the v1 `dirstate` file is smaller than the `v2` one, whereas in real life it's always larger. This commit changes the test to be more realistic, which reveals the crash, and changes the code to fix the crash.
-
- Jun 22, 2023
-
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
- Jun 21, 2023
-
-
Jason R. Coombs authored
-
Pierre-Yves David authored
The short bundle-spec are ambiguous and should be expanded to a full one before clone bundle can use it. We fix the issue and add a test actually using the generated manifest for a clone bundle operation.
-
Pierre-Yves David authored
This will be useful for automatic-clonebundles.
-
- Jun 19, 2023
-
-
Pierre-Yves David authored
This new option disable the "external" serving of auto generated bundle in favor of using the new "inline bundle" feature that allow serving such bundle through the mercurial protocol. This is a less efficient, but very easy to setup way to start using clone bundle.
-
Pierre-Yves David authored
we don't needs it for `peer-bundle-cache://` for example
-
- May 23, 2023
-
-
Pierre-Yves David authored
This will be useful to track and validate future changes to the stream-v3 protocol.
-
Pierre-Yves David authored
We want to test multiple variants, so let's make it an independent test. Small adaptations and simplifications are needed in the test output as the tested repository is now shorter.
-
Pierre-Yves David authored
Altering the format may introduce significant changes in output and in order. It is going to be simpler to deal with explicitly different blocks for the output.
-
- Jun 01, 2023
-
-
Arseniy Alekseyev authored
This new version is less rigid regarding the extract number of files and number of bytes to be actually transfered, it also lays the groundwork for other improvements. The format stays experimental, but this is an interesting base to build upon.
-
Pierre-Yves David authored
The help for `--stream-version` had a typo and missed a value.
-
- Jun 20, 2023
-
-
pierre-yves david authored
We add a large warning and an explicit abort. Both can be disable through config, but neither are explicitly documented. If any user exists I really want them to get in touch with the community.
-
- Jun 19, 2023
-
-
Pierre-Yves David authored
Since there is a large NotImplementedError in the code, I prefer we have a double check here.
-
Pierre-Yves David authored
We no longer us the capabilities as a side way to passe argument to the `clonebundle commands`
-
Pierre-Yves David authored
The old wire command does not take argument so we need a new command. We make that new command take argument to prepare it for the future (like narrow support).
-
Pierre-Yves David authored
This make things clearer around the inline clone bundle tests.
-
Pierre-Yves David authored
The current naming is very clone centric, since then, the url scheme was moved to a more generic wording to make room for other use-cases (e.g. pull bundles). We apply the same logic to the internal API and, very important prior to the release, to the wire protocol command.
-
- Jun 17, 2023
-
-
Pierre-Yves David authored
Since the case was dealt with sooner (see XXX), we no longer need to deal with it in this part of the code.
-
- Apr 20, 2023
-
-
Jason R. Coombs authored
-
- Apr 17, 2023
-
-
Jason R. Coombs authored
-
- Jun 12, 2023
-
-
Raphaël Gomès authored
It's useful in certain automated workflows to make sure we recurse in directories whose name conflicts with files in other revisions. In addition it makes it possible to avoid building a potentially costly regex, improving performance when the set of files to match explicitly is large. The benchmark below are run in the following configuration : # data-env-vars.name = mozilla-central-2018-08-01-zstd-sparse-revlog # benchmark.name = files # benchmark.variants.rev = tip # benchmark.variants.files = all-list-filepath-sorted # bin-env-vars.hg.flavor = no-rust It also includes timings using the re2 engine (through the `google-re2` module) to show how much can be saved by just using a better regexp engine. Pattern time (seconds) time using re2 ----------------------------------------------------------- just "." 0.4 0.4 list of "filepath:…" 1.3 1.3 list of "path:…" 25.7 3.9 list of patterns 29.7 10.4 As you can see, Without re2, using "filepath:" instead of "path:" is a huge win. With re2, it is still about three times faster to not have to build the regex.
-
- Jun 17, 2023
-
-
Pierre-Yves David authored
We have a generic mechanism that we can now use for the special case now.
-
- Jun 15, 2023
-
-
Pierre-Yves David authored
The integer was not what the user expect nor what could be provided as a config value.
-
Pierre-Yves David authored
We will use it in the next function to the delta policy display. It could also be use to deal with the other special case in the command code, but that is unnecessary churn for stable so that part will go on default.
-
- Jun 09, 2023
-
-
Arseniy Alekseyev authored
The crash is a result of [value] being an int, but being used as a bytestring.
-
Arseniy Alekseyev authored
-
- Jun 17, 2023
-
-
Pierre-Yves David authored
-