- Aug 03, 2021
-
-
sliquister authored
This commit is exactly the result of running this command: sed -i -e 's! *\(-e \|--ssh \|--config ui.ssh=\)[ \"]*$PYTHON[ \"]*$\(RUN\|\)TESTDIR/dummyssh[\"]* *! !g' -e '/^[ >]*ssh *=[ "]*$PYTHON[ "]*$\(RUN\|\)TESTDIR\/dummyssh[ "]*$/d' -e 's/^\( [$] .*[^ ]\) *$/\1/' *.t *.sh Sometimes the tests can be simplified further, but I think it's preferable to do the simplification separately. Differential Revision: https://phab.mercurial-scm.org/D11245
-
sliquister authored
To significantly reduce boilerplate in tests. One test is updated to show that it works, I expect to do the rest in follow up commits. Differential Revision: https://phab.mercurial-scm.org/D11244
-
- Aug 24, 2021
-
-
Pierre-Yves David authored
It only has one caller with a lot of the logic already implemented. So lets inline it and cleans things up further. Differential Revision: https://phab.mercurial-scm.org/D11353
-
Pierre-Yves David authored
It only has one caller so lets inline it and cleans things up further. Differential Revision: https://phab.mercurial-scm.org/D11352
-
Pierre-Yves David authored
It only has one caller that only use one of the branch, so lets inline that branch and clean things up further. Differential Revision: https://phab.mercurial-scm.org/D11351
-
Pierre-Yves David authored
eh ;-) Differential Revision: https://phab.mercurial-scm.org/D11350
-
Pierre-Yves David authored
The method was deprecated in 5.9. Differential Revision: https://phab.mercurial-scm.org/D11349
-
Pierre-Yves David authored
The method was deprecated in 5.9. Differential Revision: https://phab.mercurial-scm.org/D11348
-
Pierre-Yves David authored
The method was deprecated in 5.9. Differential Revision: https://phab.mercurial-scm.org/D11347
-
Pierre-Yves David authored
The method was deprecated in 5.9. Differential Revision: https://phab.mercurial-scm.org/D11346
-
Pierre-Yves David authored
The method was deprecated in 5.9. Differential Revision: https://phab.mercurial-scm.org/D11345
-
Pierre-Yves David authored
The method was deprecated in 5.9. Differential Revision: https://phab.mercurial-scm.org/D11344
-
Pierre-Yves David authored
The goal of this is to make sure we set the data right, so we need to make sure it run after the new method, that we actually call, in addition to the old one, that we no longer call. Differential Revision: https://phab.mercurial-scm.org/D11343
-
- Aug 20, 2021
-
-
Pierre-Yves David authored
This seems more consistent to do that. I don't think any test was actually barking about it, but the code feels a bit more robust now. Differential Revision: https://phab.mercurial-scm.org/D11332
-
- Jul 16, 2021
-
-
Pierre-Yves David authored
All that logic now moved within the DirstateItem itself, so we can finally drop this implementation details from the "higher" level. Differential Revision: https://phab.mercurial-scm.org/D11331
-
Pierre-Yves David authored
This way the internal details of how a DirstateItem is encoded is encapsulated within the DirstateItem. This will finally give use some latitude to change the data we store in a DirstateItem. The addfile logic will likely be rewritten eventually and these dedicated constructor can be removed at that time. In the mean-time this should help with hiding internal details of DirstateItem and to migrate it to new internal storage and logic. Differential Revision: https://phab.mercurial-scm.org/D11330
-
Pierre-Yves David authored
This simplify the conditionnal a bit since most of it is handled by the common code. Differential Revision: https://phab.mercurial-scm.org/D11329
-
Pierre-Yves David authored
This one is very easy too. Differential Revision: https://phab.mercurial-scm.org/D11328
-
Pierre-Yves David authored
This one is very easy. Differential Revision: https://phab.mercurial-scm.org/D11327
-
Pierre-Yves David authored
This simplify the conditionnal a bit since most of it is handled by the common code. Differential Revision: https://phab.mercurial-scm.org/D11326
-
Pierre-Yves David authored
We juste have to do minor value adjustement and the default code will do the rest. This kind of change highglight that "clean_p2" is probably not the right name, for that value. However this is all thing to be figured out and cleaned up once are done moving logic at lower level. Differential Revision: https://phab.mercurial-scm.org/D11325
-
Pierre-Yves David authored
This case is quite simple too Differential Revision: https://phab.mercurial-scm.org/D11324
-
Pierre-Yves David authored
This case is quite simple. Differential Revision: https://phab.mercurial-scm.org/D11323
-
Pierre-Yves David authored
Now the DirstateItem can deal with most of the logic related to its initialization, our goal is to migrate the function to a more "unified" way were minimal processing is done early before more generic code gets into play. Nobody is calling this code yet, but this is about to change. Differential Revision: https://phab.mercurial-scm.org/D11322
-
Pierre-Yves David authored
We are about to migrate `addfile` to the new `DirstateItem__init__` and having these early return will the new series of patches to be clearer. Differential Revision: https://phab.mercurial-scm.org/D11321
-
Pierre-Yves David authored
Instead of processing the "rich" value at the `dirstatemap` level, we can now directly pass them to the DirstateItem object. This will make the object free to store whatever its want and to implements it logic whatever its want. For now… we simply process the flag and store the same good old value. However this pave the way for doing things differently once the rest of dirstatemap code is updated. Nobody call this code yet. Differential Revision: https://phab.mercurial-scm.org/D11320
-
- Aug 20, 2021
-
-
Pierre-Yves David authored
We are about to change the `__init__` for `DirstateItem`. To make the transition easier, we move existing caller to `DirstateItem.from_v1_data`. The Rust dirstate map will need an overall once the durst settle anyway. Differential Revision: https://phab.mercurial-scm.org/D11319
-
- Jul 16, 2021
-
-
Pierre-Yves David authored
We are about to change the `__init__` for `DirstateItem`. To make the transition easier, we move existing caller to `DirstateItem.from_v1_data`. Differential Revision: https://phab.mercurial-scm.org/D11318
-
- Aug 20, 2021
-
-
Pierre-Yves David authored
This method is apparently not called from anywhere since the declaration was garbage. We will start calling it in the next changeset. Differential Revision: https://phab.mercurial-scm.org/D11317
-
Pierre-Yves David authored
These are property, not method. Differential Revision: https://phab.mercurial-scm.org/D11316
-
Pierre-Yves David authored
All the other caller goes through `reset_state`, so we can safely have an explicit method on `DirstateItem` object. This means that all the logic to preserve the previous state (from p2, merged, etc) is now properly encapsulated within the DirstateItem. This pave the way to using different storage for these information. Differential Revision: https://phab.mercurial-scm.org/D11315
-
Pierre-Yves David authored
The `_remove` method was only called in the deprecated `remove` function. We merge the two and express it in terms of call to new API methods. Differential Revision: https://phab.mercurial-scm.org/D11314
-
- Aug 25, 2021
-
-
Raphaël Gomès authored
-
- Aug 02, 2021
-
-
sliquister authored
Various walk functions return `(revlog_type, decoded, encoded)` where decoded could be None. But no-one cares about `encoded` and expects `unencoded` to be present, except verify (because this can only happen with old repo formats). Simplify all this by either failing outright if a decoding a filename fails (instead of almost certainly failing with a type error due to treating None as a bytes), or skipping the filename but providing in an out argument for hg verify. Differential Revision: https://phab.mercurial-scm.org/D11248
-
- Aug 01, 2021
-
-
sliquister authored
as clone --uncompressed is deprecated in favor of --stream Differential Revision: https://phab.mercurial-scm.org/D11237
-
- Aug 06, 2021
-
-
Valentin Gatien-Baron authored
On my repository, debugrebuildfncache takes 5-10min with the lock. With the flag added in this commit, it takes 10s. The tradeoff is that it only recovers from certain kinds of corruptions. It is intended to to recover faster from fncaches broken by a revlog split during a transaction that ends up being rolled back. Differential Revision: https://phab.mercurial-scm.org/D11265
-
Valentin Gatien-Baron authored
Differential Revision: https://phab.mercurial-scm.org/D11264
-
- Aug 24, 2021
-
-
sliquister authored
If desired, we could keep the future class and the function that upgrades an old style rpc instead of a new style, for extensions. Differential Revision: https://phab.mercurial-scm.org/D11212
-
sliquister authored
The scheme with futures/generator is confusing due to the way communication is done by side effects, especially with two different "future" objects. Just returning a request and a function to read the response is easier to understand. There are tests failures with the largefiles extension due to it aliasing one rpc to another one, which gets fixed in the next commit. Differential Revision: https://phab.mercurial-scm.org/D11211
-
- Aug 25, 2021
-
-
Pierre-Yves David authored
The store encoding was mudding the water. This lead to local clone crashing for file with long filename as their destination directory needed to be encoded. Differential Revision: https://phab.mercurial-scm.org/D11340
-