- 27 Nov, 2022 1 commit
-
-
Georges Racinet authored
The correct setting is indeed `ignored-extensions`, and I found about it by running `hg help config.rhg`. But `hg help rhg` points to `rust/README.rst`, which itself refers to `rust/rhg/README.md`. Perhaps some of the information in these files is now redundant and should instead be replaced by `hg help` references.
-
- 24 Nov, 2022 1 commit
-
-
Pierre-Yves David authored
The generic `tests/testlib/wait-on-file` mechanism scale its timeout with the value of `HGTEST_TIMEOUT`, the `delaypush.py` in `test-push-race.t` is not doing this, and we have been seeing more and more timeout from loaded CI worker lately. Adding this timeout scaling should help with that.
-
- 23 Nov, 2022 1 commit
-
-
Raphaël Gomès authored
As per https://docs.python.org/3/whatsnew/3.11.html#porting-to-python-3-11: "The population parameter of `random.sample()` must be a sequence, and automatic conversion of sets to lists is no longer supported. Also, if the sample size is larger than the population size, a `ValueError` is raised"
-
- 22 Nov, 2022 1 commit
-
-
Matt Harbison authored
PyCharm was complaining about invalid escape sequences since this was added recently in 3eda36e9b3d6.
-
- 20 Nov, 2022 1 commit
-
-
Matt Harbison authored
I can't reproduce it, but a coworker hit this with `hg help -v` with 6.2.3: ... File "mercurial\help.pyc", line 865, in helplist TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'set' I can confirm that the original expression fails in `hg debugshell`, and the new one works. The second instance was found by searching for "%s", but PyCharm detects a lot of variables as Any type, so I have no idea if there are other lurking problems.
-
- 19 Nov, 2022 4 commits
-
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
Pierre-Yves David authored
When running `hg log --follow --rev REVS FILES`, the log code will walk the history of all FILES starting from the file revisions that exists in each REVS. Before doing so, it looks if the files actually exists in the target revisions. To do so, it opens the manifest of each revision in REVS to look up if we find the associated items in FILES. Before this changeset this was done in a way that created a changectx for each target revision, keeping them in memory while we look into each file. If the set of REVS is large, this means keeping the manifest for each entry in REVS in memory. That can be large… if REV is in the form `::X`, this can quickly become huge and saturate the memory. We have seen usage allocating 2GB per second until memory runs out. So this changeset invert the two loop so that only one revision is kept in memory during the operation. This solve the memory explosion issue.
-
- 18 Nov, 2022 2 commits
-
-
Arseniy Alekseyev authored
This is useful so we can store other files in $TESTTMP (in particular tests that use docket files (nodemap, dirstate-v2) keep file uids in $TESTTMP/UID)
-
Arseniy Alekseyev authored
-
- 17 Nov, 2022 1 commit
-
-
Arseniy Alekseyev authored
since the transaction reverts the store, while the dirstate is stored separately
-
- 18 Nov, 2022 2 commits
-
-
Matt Harbison authored
It looks like this is meant to prevent adding another commit that does nothing but close a branch on top of a commit that already closed the branch. The matcher building functions want `Dict[bytes, Any]`, not `Dict[str, Any]`, which was found by adding type hints to the matcher related methods in scmutil.
-
Matt Harbison authored
-
- 17 Nov, 2022 1 commit
-
-
Arseniy Alekseyev authored
-
- 08 Nov, 2022 1 commit
-
-
Matt Harbison authored
This code hasn't been touched in recent years, and the other implementation return bytes for the filename, so I assume this is a holdover from the py2 days. I was unable to test it on mac though, because the `_osutil` import failed.
-
- 02 Nov, 2022 1 commit
-
-
Jason R. Coombs authored
Also, add some documentation to the `.in` files.
-
- 16 Nov, 2022 4 commits
-
-
Pierre-Yves David authored
Since the previous commit (fixing wider issue), the code generated strange regex. This is now fixed and tested.
-
Pierre-Yves David authored
Same problem same solution.
-
Pierre-Yves David authored
Python 3.11 is now enforcing that flag must be at the beginning of the regex This creates a serious regression for people using Python 3.11 with an hgignore using flag in a "relre" pattern. We now detect any flags in such pattern and "prepend" our ".*" pattern after them. In addition, we now insert the flag in the regexp to only affect the pattern we are rewriting. Otherwise, the regex built from the combined pattern would these flags in the middle of it anyway. As a side effect of this last change, we fix a bug… before this change regex flag in a pattern would affect all combined patterns. That was bad and is not longer the case. The Rust code needs to be updated to fix that very bug, but we will do it in another changeset.
-
Pierre-Yves David authored
The revision having two tags confuses some of the build script trying to fetch the version. So, remove the "bad" tag for now.
-
- 14 Nov, 2022 3 commits
-
-
Raphaël Gomès authored
Being this rigid makes packagers' job more difficult since they might not carry the exact version. This hard pinning was introduced in eb02decdf0ab but wasn't strictly necessary to achieve its compatibility goal.
-
Anton Shestakov authored
On Linux, ls -A simply returns nothing and the exit code is 0. On NetBSD, ls -A complains that . doesn't exist and the exit code is 1. Sadly, it's not possible to do something like "[1] (?)", so " || true" is the best I could come up with.
-
Anton Shestakov authored
This is done to make it's clear that windows is not affected by this test case, IOW windows and non-windows platforms are now tested separately, because their results are very different.
-
- 20 Jun, 2022 1 commit
-
-
Anton Shestakov authored
In case the tests are run as root, ls assumes -A by default on some systems (e.g. NetBSD). Tests probably shouldn't be run as root, but let's use -A just in case, for convenience.
-
- 15 Nov, 2022 1 commit
-
-
Pierre-Yves David authored
The release was tagged "6.3.0" while the custom have been to omit the third ".0" for initial release for the history of the project. For consistency, we add the customary version of the tag to the 6.3 release.
-
- 14 Nov, 2022 4 commits
-
-
Pacien TRAN-GIRARD authored
Recent versions of git restrict the use of the "file" protocol for security reasons (https://github.com/git/git/commit/a1d4f67). This broke this test, which failed with the following hidden error: "fatal: transport 'file' not allowed". This patch relaxes the git configuration for the test to solve this.
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
Raphaël Gomès authored
-
- 10 Nov, 2022 1 commit
-
-
Raphaël Gomès authored
Explanations inline.
-
- 12 Nov, 2022 3 commits
-
-
Pierre-Yves David authored
Building a changectx object is costly, doing it just to retrieve the revision number is suboptimal. Directly fetching the revision number from the changelog provide a sizeable speedup to `hg debugupdatecache`. ### data-env-vars.name = mercurial-2018-08-01-zstd-sparse-revlog # benchmark.name = debug-update-cache # benchmark.variants.pre-state = warm before: 0.213229 seconds after: 0.165577 seconds (-22.35%) # data-env-vars.name = mercurial-filtered-2019-11-22-zstd-sparse-revlog before: 1.200383 seconds after: 1.071618 seconds (-10.73%) # data-env-vars.name = mozilla-central-2018-08-01-zstd-sparse-revlog before: 1.465735 seconds after: 0.923128 seconds (-37.02%) # data-env-vars.name = mozilla-try-2019-02-18-zstd-sparse-revlog before: 6.511771 seconds after: 4.507316 seconds (-30.78%) # data-env-vars.name = netbeans-2018-08-01-zstd-sparse-revlog before: 1.023007 seconds after: 0.645026 seconds (-36.95%) # data-env-vars.name = pypy-2018-08-01-zstd-sparse-revlog before: 0.381141 seconds after: 0.268654 seconds (-29.51%)
-
Pierre-Yves David authored
While getting multiple hgtagsfnodecache entries, we were opening (and closing) the `.hgtags` filelog for each iteration. The meant repeatedly reading and parsing the version same information from disk. A quite costly operation. We no longer do this, leading to a sizable improvement in `hg debugupdatecache` run for an already warm repositories. ### data-env-vars.name = mercurial-2018-08-01-zstd-sparse-revlog # benchmark.name = debug-update-cache # benchmark.variants.pre-state = warm before: 1.711778 seconds after: 0.213229 seconds (-87.54%) # data-env-vars.name = pypy-2018-08-01-zstd-sparse-revlog before: 4.010817 seconds after: 0.381141 seconds (-90.50%) # data-env-vars.name = netbeans-2018-08-01-zstd-sparse-revlog before: 13.574141 after: 1.023007 seconds (-92.46%) # data-env-vars.name = mozilla-central-2018-08-01-zstd-sparse-revlog before: 18.884656 after: 1.465735 seconds (-92.24%) # data-env-vars.name = mozilla-try-2019-02-18-zstd-sparse-revlog before: 88.924823 after: 6.511771 seconds (-92.68%)
-
Pierre-Yves David authored
For some unknown reason, `self.lineno` can be None. The previous code crashed in such case, we now ignore the case, as we do for other error in this function. We also fallback to using `-1` in the output when this lack of line number makes it to the display code. The reason of unknown line-numbers is… unknown.
-
- 06 Nov, 2022 1 commit
-
-
Matt Harbison authored
ui.write() expects bytes, and internally uses `b''` as the default when getting the `label` keyword from `*args`. So either we're missing test coverage, or there's some very subtle conversion from unicode somewhere. Also, slip in a type hint to flag this in the future.
-
- 03 Nov, 2022 5 commits
-
-
Raphaël Gomès authored
This is useful for debugging the behavior of the "default" `hg` in tests without having to manually substitute the fallback path.
-
Raphaël Gomès authored
This will be useful for the next patch which needs it.
-
Raphaël Gomès authored
This will make using `rhg` more user-friendly and features more discoverable.
-
Raphaël Gomès authored
This will make using `rhg` more user-friendly and features more discoverable.
-
Raphaël Gomès authored
This makes the output much more readable.
-