.gitattributes
author Georges Racinet <georges.racinet@octobus.net>
Sun, 29 Oct 2023 10:47:54 +0100
changeset 51241 578c049f0408
parent 50391 9fa3cda7449e
permissions -rw-r--r--
rust-index: using `hg::index::Index` in `hg-cpython::dagops` Hooking `headrevs` to the Rust index is straightforward as long as we go the `PySharedRef` way. Direct attempts of obtaining a reference to the inner `hg::index::Index` fail for lifetime reasons: the reference is bound to the GIL, yet the `as_set` local variable is considered to be static (the borrow checker clearly does not realize or care that this set only stores `Revision` values). In `rank()`, the chosen solution is the simplest as far as `hg-cpython` is concerned, but it has the defect of removing an implementation that would be easily adaptable if the core index did implement `RankedGraph` (returning the same error as long as only `REVLOGV1` is supported), but that would introduce a direct dependency of `hg-core` on the ``vcsgraph` crate.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50391
9fa3cda7449e heptapod: add `.gitattributes` file to improve language detection
Raphaël Gomès <rgomes@octobus.net>
parents:
diff changeset
     1
# So GitLab doesn't think we're using tons of Perl
9fa3cda7449e heptapod: add `.gitattributes` file to improve language detection
Raphaël Gomès <rgomes@octobus.net>
parents:
diff changeset
     2
*.t -linguist-detectable