Commits on Source (14)
-
Matt Harbison authored
I noticed because `merge-pyi` on the non-cext implementations with this file as input skipped the return type for this. `pytype-single --parse-pyi` confirmed it was a problem.
b8389533ba3a -
Matt Harbison authored
This was flagged by pytype after merging the corresponding bdiff.pyi in cext: File ".../mercurial/cffi/bdiff.py", line 44, in blocks: bad return type [bad-return-type] Expected: List[Tuple[int, int, int, int]] Actually returned: List[None] AFAICT, all callers immediately unpack the tuple into 4 variables, so a `None` entry would simply crash if they aren't all overwritten. As long a `count` and the link list are consistent, this shouldn't be a problem. This placates both pytype and PyCharm (which complained about the `i` in `rl[i]` having the wrong type with the old code).
b2666e767029 -
Matt Harbison authored
Not super important code, but this was an exercise in using `merge-pyi` to fold type stubs back into the code on something small. The cext stubs don't seem to be getting used (at least the only thing in `.pytype/pyi/mercurial/cext` after a run generating the stubs is `__init__.pyi`), so maybe this will help some.
594fc56c0af7 -
Matt Harbison authored
Again, using `merge-pyi` to apply the stubs in cext and then manually type the private methods. The generated stub without these hints inferred very little, and the stuff it did was wrong.
94a797032fc4 -
Matt Harbison authored
The cffi and pure implementations both default to `None`, and the args are parsed in C with `"y#|OO:listdir"`, with the C variable initialized to NULL.
b6fc602e074a -
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.
8009a89bc18b -
Pierre-Yves David authored
This will help us to understand the behavior of find-delta during a pull.
78ba41878f2e -
Pierre-Yves David authored
This will helps a lot to understand how the bundling decision might impact pull/unbundle on the other side.
9cac281eb9c0 -
Pierre-Yves David authored
This will helps a lot to understand how the bundling decision have actually impacted pull/unbundle on the other side.
35d4c2124073 -
Pierre-Yves David authored
This make the next changeset more compact.
2afee2176775 -
Pierre-Yves David authored
This is more consistent and will help use to be in a clean state before dealing with the "too large group" issue. As a side effect, the debug output now skip some useless cases, making it more useful.
e706bb41fdb3 -
Pierre-Yves David authored
This is not a 1-1 mapping, but a 1-n mapping. Lets make the associated comment clearer.
5447c1507c86 -
Pierre-Yves David authored
the index in the delta-chain is also the snapshot depth. So we rename the variable for clarity.
01ccb45b7393 -
Pierre-Yves David authored
In a coming change, not all elements of `group` might get tested. So we need to have more control about when a revision is actually added to the `tested` set. So we move to a more verbose (and more fragile) version.
4956942c0416
Showing
- hgext/remotefilelog/remotefilelog.py 1 addition, 0 deletionshgext/remotefilelog/remotefilelog.py
- hgext/sqlitestore.py 1 addition, 0 deletionshgext/sqlitestore.py
- mercurial/cext/bdiff.pyi 1 addition, 1 deletionmercurial/cext/bdiff.pyi
- mercurial/cext/osutil.pyi 2 additions, 1 deletionmercurial/cext/osutil.pyi
- mercurial/cffi/bdiff.py 8 additions, 3 deletionsmercurial/cffi/bdiff.py
- mercurial/cffi/mpatch.py 3 additions, 1 deletionmercurial/cffi/mpatch.py
- mercurial/cffi/osutil.py 1 addition, 1 deletionmercurial/cffi/osutil.py
- mercurial/changegroup.py 455 additions, 10 deletionsmercurial/changegroup.py
- mercurial/configitems.py 12 additions, 0 deletionsmercurial/configitems.py
- mercurial/filelog.py 4 additions, 0 deletionsmercurial/filelog.py
- mercurial/manifest.py 4 additions, 0 deletionsmercurial/manifest.py
- mercurial/pure/bdiff.py 12 additions, 5 deletionsmercurial/pure/bdiff.py
- mercurial/pure/mpatch.py 14 additions, 5 deletionsmercurial/pure/mpatch.py
- mercurial/revlog.py 4 additions, 0 deletionsmercurial/revlog.py
- mercurial/revlogutils/deltas.py 127 additions, 52 deletionsmercurial/revlogutils/deltas.py
- mercurial/utils/storageutil.py 84 additions, 2 deletionsmercurial/utils/storageutil.py
- tests/test-bundle.t 71 additions, 9 deletionstests/test-bundle.t
- tests/test-sparse-revlog.t 9 additions, 14 deletionstests/test-sparse-revlog.t
This diff is collapsed.