DiffService.GetPatchID and install/config doc
- Feb 12, 2024
-
-
Georges Racinet authored
Main motivation was external executables, but being comprehensive is expected.
cb721a91947e -
Georges Racinet authored
Primary motivation was to list external executables, but it got bigger.
ea2a17b47210 -
Georges Racinet authored
This induced better grouping of the existing sections, and hence higher heading levels for almost all existing ones.
9f7873a8eba7
-
- Feb 06, 2024
-
-
Georges Racinet authored
Since `git patch-id` does not involve the repository at all (it ingests a patch and outputs a hash), we are actually spawning it, with a Mercurial generated patch. For general consistency (and hoping it does not matter so much), we are computing the index lines as for the `RawDiff` method, but Git seems to actually ignore it. We are avoiding to extract the full content of binary files, as it would be expensive and essentially useless. This is also what Gitaly does, and we probably should generalize it to some other `DiffService` methods (to be checked) As the Comparison Tests display, the patch id computed by HGitaly turns out to be identical to the done by Gitaly for simple text-only diffs. That will obviously not be true of binary diffs.
972fd9a8b2cc
-
- Feb 11, 2024
-
-
Georges Racinet authored
Was previously duplicated in `hgitaly.diff`
75d6aa325522 -
Georges Racinet authored
It is now able to understand diff headers generated without the option that dumps the full binary content in Git format, and returns whether a binary placeholder is to be generated.
edce640489e1 -
Georges Racinet authored
The main purpose is to encapsulate the various accesses to file contexts, hence - improving clarity - making sure to avoid repeated manifest lookups (even though they are partially cached, because the C `lazymanifest` should be instantiated only once). We take the opportunity to change some old/new namings in favour of from/to, clearer to us and more in line with Gitaly protocol namings. The minor drawback is that some methods do not really need the change contexts.
29a5c9015d1c -
Georges Racinet authored
Although all callers are expected to be in the `DiffService`, this will improve the testing capability. Large refactorings are obiously needed.
03d51755d098
-